Skip to content
Commit ddeb4547 authored by Colin Ian King's avatar Colin Ian King Committed by Yongxin Liu
Browse files

Bluetooth: btrtl: fix incorrect skb allocation failure check



commit f5e8e215 upstream.

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: 1996d9ca ("Bluetooth: btrtl: Ask 8821C to drop old firmware")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarYongxin Liu <yongxin.liu@windriver.com>
parent 7ec99e44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment