]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: hci_qca: fix NULL pointer dereference in qca_dmp_hdr() for non-serdev...
authorZijun Hu <zijun.hu@oss.qualcomm.com>
Mon, 1 Jun 2026 11:30:56 +0000 (04:30 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 11 Jun 2026 18:24:39 +0000 (14:24 -0400)
commit6b8cbcf08de0db62254d1981f83db0f94681ccd9
treeadc2420dd542ce9a2bf2b947470a7de81bb95d87
parent3ec629fee178d429f01ae843e4ea888de93012bf
Bluetooth: hci_qca: fix NULL pointer dereference in qca_dmp_hdr() for non-serdev device

hu->serdev is NULL for hci_uart attached via non-serdev paths, but
qca_dmp_hdr() unconditionally dereferences hu->serdev->dev.driver->name,
causing a NULL pointer dereference.

Fix by guarding the dereference with a NULL check and falling back to
"hci_ldisc_qca" for the non-serdev case.

Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_qca.c