Commit b505902c authored by Zhongqiu Han's avatar Zhongqiu Han Committed by Luiz Augusto von Dentz
Browse files

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: 7d70989f ("Bluetooth: btusb: Add HCI Drv commands for configuring altsetting")
Signed-off-by: default avatarZhongqiu Han <quic_zhonhan@quicinc.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 636c803f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment