Skip to content
Commit 37134167 authored by Chan-yeol Park's avatar Chan-yeol Park Committed by Marcel Holtmann
Browse files

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: default avatarChan-yeol Park <chanyeol.park@samsung.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 30811fa6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment