summaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-12-07 16:37:30 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-01-10 00:48:25 +0100
commit1727cf937401945a590ebf25c7fa65a4853fe9bb (patch)
tree481c0ec5c71347d2e4cded197d106e31b4b53c25 /drivers/nfc
parent2593c2c6ec236c6aedbb8182d103185ab6580285 (diff)
downloadop-kernel-dev-1727cf937401945a590ebf25c7fa65a4853fe9bb.zip
op-kernel-dev-1727cf937401945a590ebf25c7fa65a4853fe9bb.tar.gz
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>
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud