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

Commit be17fd0e authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by Gerrit - the friendly Code Review server
Browse files

net: qualcomm: rmnet: Fix incorrect parsing of next hdr



Next header bit of the MAP header needs to be parsed only in case
of RMNET_FLAGS_INGRESS_COALESCE or RMNET_FLAGS_INGRESS_MAP_CKSUMV5
only.

CRs-Fixed: 2348670
Change-Id: Ide17ca1138576936b4a7012709e15abf945ffc97
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent b451b394
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -163,7 +163,9 @@ __rmnet_map_ingress_handler(struct sk_buff *skb,
	skb->dev = ep->egress_dev;

	/* Handle QMAPv5 packet */
	if (qmap->next_hdr) {
	if (qmap->next_hdr &&
	    (port->data_format & (RMNET_FLAGS_INGRESS_COALESCE |
				  RMNET_FLAGS_INGRESS_MAP_CKSUMV5))) {
		if (rmnet_map_process_next_hdr_packet(skb))
			goto free_skb;
	} else {