Bluetooth: check sock parent before unlink 19/87919/5
authorSudha Bheemanna <b.sudha@samsung.com>
Mon, 12 Sep 2016 06:27:38 +0000 (11:57 +0530)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 29 Sep 2016 05:40:22 +0000 (14:40 +0900)
commit371e5592030e963079563174adf936f313b24373
tree8aad2d9526c135c9cfc74310b9da7fe470129a45
parentfd55447abdefb72ce09704593a7c21d91d5959a2
Bluetooth: check sock parent before unlink

Add a check for BT socket before using it to unlink
in bt_accept_unlink(). This helps to avoid kernel panic.

Change-Id: Ie8919dedce239a3476c06ad48ebb3a0f731b9856
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[update patch title]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
net/bluetooth/af_bluetooth.c