]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Jun 2015 12:21:08 +0000 (14:21 +0200)
commit31ef382b4b17290b97e59064a4ecd7eb34a223c0
treea2409a72dfb3f71c29b23ca89ef8a91f3acd0cad
parentfc7af3c386140d8dcfff454e324ae41386f8cb52
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