NFC: Unlink LLCP child sockets from llcp_sock_release
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 5 Mar 2012 00:03:48 +0000 (01:03 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Mar 2012 20:16:23 +0000 (15:16 -0500)
commit0c31835993e622fa9d407807e384c0f9b971d53b
tree5d5b4f15262f507534fe4ec70cad346e2cc16306
parent2fbabfa467ce945deb92bf04c745b4d101fc21ee
NFC: Unlink LLCP child sockets from llcp_sock_release

The parent socket (the bound one) could be freed before its children, so
we should unlink the children without trying to reach it through the parent.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/llcp/sock.c