diff options
author | Charles Han <hanchunchao@inspur.com> | 2024-12-27 12:20:46 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2025-01-15 18:34:27 +0300 |
commit | b88655bc6593c6a7fdc1248b212d17e581c4334e (patch) | |
tree | f351d1df46b820265855befc1ecb571965cf254f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 30209aeff75fe18cf01a63332a7a7f472877d445 (diff) | |
download | linux-b88655bc6593c6a7fdc1248b212d17e581c4334e.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions