Bluetooth: Fix potential NULL dereference in RFCOMM bind callback
authorJaganath Kanakkassery <jaganath.k@samsung.com>
Wed, 14 Dec 2016 12:24:54 +0000 (13:24 +0100)
committerSasha Levin <alexander.levin@verizon.com>
Fri, 23 Dec 2016 15:39:29 +0000 (10:39 -0500)
commitee79b622f43bab46bd6ff778b3cd2e4af4784bc2
tree01bff2b077ef186fe6e503b048033ee0d6efbbf6
parent6371e0cdc5be8671461f136dc1df9a36bdb5292a
Bluetooth: Fix potential NULL dereference in RFCOMM bind callback

[ Upstream commit 951b6a0717db97ce420547222647bcc40bf1eacd ]

addr can be NULL and it should not be dereferenced before NULL checking.

Signed-off-by: Jaganath Kanakkassery <jaganath.k@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
net/bluetooth/rfcomm/sock.c