diff options
| author | Colin Ian King <[email protected]> | 2020-11-10 12:39:15 +0000 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2020-11-11 10:53:56 +0000 |
| commit | f5e8e215869eed6163d5fdd309f0e674a0f23df6 (patch) | |
| tree | 914afb6b374b8c6cbc8560c31ffb84fae7046b2b /net/bluetooth/hci_request.c | |
| parent | Bluetooth: hci_ll: add a small delay for wl1271 enable bt_en (diff) | |
| download | kernel-f5e8e215869eed6163d5fdd309f0e674a0f23df6.tar.gz kernel-f5e8e215869eed6163d5fdd309f0e674a0f23df6.zip | |
Bluetooth: btrtl: fix incorrect skb allocation failure check
Currently the check for a failed bt_skb_alloc allocation is incorrectly
checking using IS_ERR and this can lead to a null pointer dereference. Fix
this by checking for a null pointer return using the !skb idiom.
Addresses-Coverity: ("Dereference null return")
Fixes: 1996d9cad6ad ("Bluetooth: btrtl: Ask 8821C to drop old firmware")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
