Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3155155 authored by Thierry Escande's avatar Thierry Escande Committed by Samuel Ortiz
Browse files

NFC: llcp: Remove possible double call to kfree_skb



kfree_skb was called twice when the socket receive queue is full

Signed-off-by: default avatarThierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent bec964ed
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);
		}
	}