From b410fce77c5bd394e10bf13717cf417fe0acfd80 Mon Sep 17 00:00:00 2001 From: Subash Abhinov Kasiviswanathan Date: Thu, 6 Mar 2014 20:18:27 -0700 Subject: net: rmnet_data: modify 8-byte QoS Header Clients consuming the 8-byte QoS header expect the flowID in a different position in the header thus causing random address dereference and a potential crash. Update the 8-byte QoS header format structure as specified in the mandated QOS specification CRs-Fixed: 625709 Change-Id: I58c662ff2f3adfe9584d19891339ea31ce0c8bd3 Signed-off-by: Subash Abhinov Kasiviswanathan --- include/uapi/linux/msm_rmnet.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/msm_rmnet.h b/include/uapi/linux/msm_rmnet.h index 5866adb12391..b03f3285cd7d 100644 --- a/include/uapi/linux/msm_rmnet.h +++ b/include/uapi/linux/msm_rmnet.h @@ -138,9 +138,8 @@ struct QMI_QOS_HDR_S { /* QMI QoS 8-byte header. */ struct qmi_qos_hdr8_s { - uint8_t version_flags; - uint8_t reserved[3]; - uint32_t flow_id; + struct QMI_QOS_HDR_S hdr; + uint8_t reserved[2]; } __attribute((__packed__)); #endif /* _UAPI_MSM_RMNET_H_ */ -- cgit v1.2.3