Commit 727c523
committed
Bluetooth: btusb: Fix potential NULL dereference on kmalloc failure
JIRA: https://issues.redhat.com/browse/RHEL-107922
commit b505902
Author: Zhongqiu Han <quic_zhonhan@quicinc.com>
Date: Sat Jul 5 18:52:46 2025 +0800
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: 7d70989 ("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>
Signed-off-by: David Marlin <dmarlin@redhat.com>1 parent 66c8549 commit 727c523
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3802 | 3802 | | |
3803 | 3803 | | |
3804 | 3804 | | |
| 3805 | + | |
| 3806 | + | |
3805 | 3807 | | |
3806 | 3808 | | |
3807 | 3809 | | |
| |||
0 commit comments