Commit 3c15082f authored by Max Chou's avatar Max Chou Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: btrtl: check for NULL in btrtl_setup_realtek()



If insert an USB dongle which chip is not maintained in ic_id_table, it
will hit the NULL point accessed. Add a null point check to avoid the
Kernel Oops.

Fixes: b39910bb ("Bluetooth: Populate hci_set_hw_info for Intel and Realtek")
Reviewed-by: default avatarAlex Lu <alex_lu@realsil.com.cn>
Signed-off-by: default avatarMax Chou <max.chou@realtek.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent b88655bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment