提交 b3155155 编写于 作者: T Thierry Escande 提交者: Samuel Ortiz

NFC: llcp: Remove possible double call to kfree_skb

kfree_skb was called twice when the socket receive queue is full
Signed-off-by: NThierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 bec964ed
...@@ -821,7 +821,6 @@ static void nfc_llcp_recv_ui(struct nfc_llcp_local *local, ...@@ -821,7 +821,6 @@ static void nfc_llcp_recv_ui(struct nfc_llcp_local *local,
skb_get(skb); skb_get(skb);
} else { } else {
pr_err("Receive queue is full\n"); pr_err("Receive queue is full\n");
kfree_skb(skb);
} }
nfc_llcp_sock_put(llcp_sock); nfc_llcp_sock_put(llcp_sock);
...@@ -1022,7 +1021,6 @@ static void nfc_llcp_recv_hdlc(struct nfc_llcp_local *local, ...@@ -1022,7 +1021,6 @@ static void nfc_llcp_recv_hdlc(struct nfc_llcp_local *local,
skb_get(skb); skb_get(skb);
} else { } else {
pr_err("Receive queue is full\n"); pr_err("Receive queue is full\n");
kfree_skb(skb);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册