]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btusb: Fix potential NULL dereference on kmalloc failure
authorZhongqiu Han <quic_zhonhan@quicinc.com>
Sat, 5 Jul 2025 10:52:46 +0000 (18:52 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Jul 2025 14:28:30 +0000 (10:28 -0400)
commitb505902c66a282dcb01bcdc015aa1fdfaaa075db
tree9250a8a383518a0aa8e70326ae4cca7824cbf21f
parent636c803f926ba0b20ad04be6a98592f4df7a7fd5
Bluetooth: btusb: Fix potential NULL dereference on kmalloc failure

Avoid potential NULL pointer dereference by checking the return value of
kmalloc and handling allocation failure properly.

Fixes: 7d70989fcea7 ("Bluetooth: btusb: Add HCI Drv commands for configuring altsetting")
Signed-off-by: Zhongqiu Han <quic_zhonhan@quicinc.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c