NFC: llcp: Detach socket from process context only when releasing the socket
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 20 Mar 2013 09:50:50 +0000 (10:50 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 20 Mar 2013 10:30:37 +0000 (11:30 +0100)
commitbec964ed3b2549086e1fdfbf7f1ce8c22f89baa4
tree475d489bbe9e6c753e2a280094cfa7672c6d7c99
parent36ef0b473fbf43d5db23eea4616cc1d18cec245f
NFC: llcp: Detach socket from process context only when releasing the socket

Calling sock_orphan when e.g. the NFC adapter is removed can lead to
kernel crashes when e.g. a connection less client is sleeping on the
Rx workqueue, waiting for data to show up.

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