]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: check for NULL in btusb_find_altsetting()
authorSathish Narasimman <nsathish41@gmail.com>
Wed, 8 Apr 2020 05:27:03 +0000 (10:57 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Apr 2020 06:16:56 +0000 (08:16 +0200)
commited05fc52981695656c74b57b952f8f4518dbd1ad
tree78655072d2cacc5d887603be2200dc3c4050a8a9
parent7f13a4ac85e775525570bf60d6b2c7a7a4a5f7da
Bluetooth: btusb: check for NULL in btusb_find_altsetting()

The new btusb_find_altsetting() dereferences it without checking
the check is added in this patch

Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c