]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btintel: Fix incorrect out of memory check
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Sep 2021 12:35:41 +0000 (13:35 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 10 Sep 2021 07:28:32 +0000 (09:28 +0200)
commit3bbb69a2643f6f6c2b7259079db0fbf8bfa48066
tree70331aba8e55794ca215f19b8c4648d73fafc8cd
parenta922a7636d8daf23595ef0b834c132822ec9ae8a
Bluetooth: btintel: Fix incorrect out of memory check

Currently *ven_data is being assigned the return from a kmalloc call but
the out-of-memory check is checking ven_data and not *ven_data. Fix this
by adding the missing dereference * operator,

Addresses-Coverity: ("Dereference null return")
Fixes: 9fd92d47c768 ("Bluetooth: btintel: Define a callback to fetch codec config data")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btintel.c