Bluetooth: hci_uart: Fix dereferencing of ERR_PTR
authorChan-yeol Park <chanyeol.park@samsung.com>
Wed, 17 Jun 2015 12:10:39 +0000 (21:10 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 4 Apr 2016 01:12:21 +0000 (10:12 +0900)
commit5d60d11024c8700cf609b888a078e0cd094dac27
tree2719a7f7a86c3fa14640b9efd5ef6a4f6dffc193
parentdcc68c64592a40b9bb9bcc8b3ea5a087d9fb1276
Bluetooth: hci_uart: Fix dereferencing of ERR_PTR

If h4_recv_buf() return ERR_PTR instead sk_buff pointer, it should be
cleared once PTR_ERR is completed for the further dereference such as
h4_recv(), or h4_close().

Signed-off-by: Chan-yeol Park <chanyeol.park@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ath.c
drivers/bluetooth/hci_bcm.c
drivers/bluetooth/hci_h4.c