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

Commit aea06a3b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Add NULL check for skb"

parents b4fe0f7b c4ea6f1e
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -675,9 +675,14 @@ static void ipa_gsb_cons_cb(void *priv, enum ipa_dp_evt_type evt,
		return;
	}

	if (!data) {
		IPA_GSB_ERR("Invalid data\n");
		return;
	}

	skb = (struct sk_buff *)data;

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