diff options
author | Thierry Escande <thierry.escande@linux.intel.com> | 2013-03-20 19:00:16 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-03-20 19:46:40 +0400 |
commit | b3155155440190de78fb501953136a6c5b82e327 (patch) | |
tree | 991c683d5fe6b34f63085ff925e89eff1b10fea2 /net/nfc | |
parent | bec964ed3b2549086e1fdfbf7f1ce8c22f89baa4 (diff) | |
download | linux-b3155155440190de78fb501953136a6c5b82e327.tar.xz |
NFC: llcp: Remove possible double call to kfree_skb
kfree_skb was called twice when the socket receive queue is full
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/llcp/llcp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index 336813ff8cd5..ee25f25f0cd6 100644 --- a/net/nfc/llcp/llcp.c +++ b/net/nfc/llcp/llcp.c @@ -821,7 +821,6 @@ static void nfc_llcp_recv_ui(struct nfc_llcp_local *local, skb_get(skb); } else { pr_err("Receive queue is full\n"); - kfree_skb(skb); } nfc_llcp_sock_put(llcp_sock); @@ -1022,7 +1021,6 @@ static void nfc_llcp_recv_hdlc(struct nfc_llcp_local *local, skb_get(skb); } else { pr_err("Receive queue is full\n"); - kfree_skb(skb); } } |