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>
Wed, 14 Dec 2016 04:49:00 +0000 (13:49 +0900)
commitf732845d4bfa08ca57536ce280e22c20d3846fb5
treee8c5a6f518b123f0dc3a16aa4c22fb7d5ac9cdc9
parent936558c6b29bcd2b496e2e6e232cc5b195835a5f
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