From: Samuel Ortiz Date: Fri, 7 Dec 2012 15:37:30 +0000 (+0100) Subject: NFC: llcp: Fix Rx memory leak X-Git-Tag: v3.9-rc1~139^2~242^2^2~26^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1727cf937401945a590ebf25c7fa65a4853fe9bb;p=pandora-kernel.git 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 Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed