]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_bcm: checking for ERR_PTR instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Oct 2015 09:06:09 +0000 (12:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 22 Oct 2015 09:32:47 +0000 (11:32 +0200)
commit5504c10fc9c967da2293a68f71a3a0a1e924086b
treeaf0e9848bcce33192657915a622c09f98cca899b
parent1aa77b972d64bae4a1e6f3869a1f876048659c28
Bluetooth: hci_bcm: checking for ERR_PTR instead of NULL

bt_skb_alloc() returns NULL on error, it never returns an ERR_PTR.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c