linux/net/nfc/llcp
Samuel Ortiz 1727cf9374 NFC: llcp: Fix Rx memory leak
The reference count bump on the llcp Rx path is leading to a memory leak
whenever we're not receiving an I frame.
We fix that by removing the refcount bump (drivers must not free their
received skb) and using it only in the I frame path, when the frame is
actually queued. In that case, the skb will only be freed when someone
fetches it from userspace. in all other cases, LLCP received frames will
be freed when leaving the Rx work queue.

Reported-by: Eric Lapuyade <eric.lapuyade@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2013-01-10 00:48:25 +01:00
..
commands.c NFC: Add support for SO_TIMESTAMP LLCP socket option 2013-01-10 00:44:24 +01:00
Kconfig NFC: Remove CONFIG_EXPERIMENTAL from the LLCP Makefile 2012-10-26 18:26:52 +02:00
llcp.c NFC: llcp: Fix Rx memory leak 2013-01-10 00:48:25 +01:00
llcp.h NFC: llcp: Remove the tx backlog queue 2013-01-10 00:44:31 +01:00
sock.c NFC: llcp: Remove the tx backlog queue 2013-01-10 00:44:31 +01:00