Commit b88655bc authored by Charles Han's avatar Charles Han Committed by Luiz Augusto von Dentz
Browse files

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: f9183eaa ("Bluetooth: btbcm: Use devm_kstrdup()")
Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 30209aef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment