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

Commit 470c12b7 authored by Gilad Avidov's avatar Gilad Avidov
Browse files

msm: emac: Fix memory leak when receiving jumbo packets



The driver uses the null pointer to free the skb buffer when handling
the RX error condition. It causes the memory leak.

Change-Id: I5971e920aa5e6865598c6028dd87f4213c5d5b41
Acked-by: default avatarJie Luo <jluo@qti.qualcomm.com>
Signed-off-by: default avatarGilad Avidov <gavidov@codeaurora.org>
parent 17948f40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -623,7 +623,7 @@ static void emac_handle_rx(struct emac_adapter *adpt,
		count++;

		if (srrd.genr.res || srrd.genr.lene) {
			dev_kfree_skb(rfbuf->skb);
			dev_kfree_skb(skb);
			continue;
		}