summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorCharles Han <hanchunchao@inspur.com>2024-12-27 17:20:46 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2025-01-15 10:34:27 -0500
commitb88655bc6593c6a7fdc1248b212d17e581c4334e (patch)
treef351d1df46b820265855befc1ecb571965cf254f /scripts/lib/kdoc/kdoc_parser.py
parent30209aeff75fe18cf01a63332a7a7f472877d445 (diff)
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 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions