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

Commit d905ae3d authored by Mohammed Javid's avatar Mohammed Javid Committed by Mohammed
Browse files

msm: ipa: gsb: Fix NULL pointer dereference



Fix dereference of skb pointer before NULL check.

Change-Id: Id6137732c3927fdf748bb4539e1f631fcfaedbda
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent a7306e91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -677,7 +677,7 @@ static void ipa_gsb_cons_cb(void *priv, enum ipa_dp_evt_type evt,

	skb = (struct sk_buff *)data;

	while (skb->len) {
	while (skb && skb->len) {
		mux_hdr = (struct ipa_gsb_mux_hdr *)skb->data;
		pkt_size = mux_hdr->pkt_size;
		/* 4-byte padding */