diff options
author | 2024-12-27 17:20:46 +0800 | |
---|---|---|
committer | 2025-01-15 10:34:27 -0500 | |
commit | b88655bc6593c6a7fdc1248b212d17e581c4334e (patch) | |
tree | f351d1df46b820265855befc1ecb571965cf254f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Bluetooth: qca: Expand firmware-name to load specific rampatch (diff) | |
download | wireguard-linux-b88655bc6593c6a7fdc1248b212d17e581c4334e.tar.xz wireguard-linux-b88655bc6593c6a7fdc1248b212d17e581c4334e.zip |
Bluetooth: btbcm: Fix NULL deref in btbcm_get_board_name()
devm_kstrdup() can return a NULL pointer on failure,but this
returned value in btbcm_get_board_name() is not checked.
Add NULL check in btbcm_get_board_name(), to handle kernel NULL
pointer dereference error.
Fixes: f9183eaad915 ("Bluetooth: btbcm: Use devm_kstrdup()")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions