NFC: Release LLCP SAP when the owner is released
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 22 Jun 2012 12:48:11 +0000 (14:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:42:17 +0000 (16:42 -0400)
commitcbbf472181bd5d6229decda96b34b0c2bbcb3050
tree152e06ea436fcc419af1604a2f118f6be0ff33c9
parent4d22ea1532ba5730b665343e513d813c108c84ff
NFC: Release LLCP SAP when the owner is released

The LLCP SAP should only be freed when the socket owning it is released.
As long as the socket is alive, the SAP should be reserved in order to
e.g. send the right wks array when bringing the MAC up.

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