From 7bb505608d4861d2e84bdce654c746881276996e Mon Sep 17 00:00:00 2001 From: Yu Wang Date: Thu, 18 Jun 2020 20:06:10 +0800 Subject: [PATCH] qcacld-3.0: fix a potential assignment truncation issue Truncation will happen when assining an association id over 256 to the u8 'aid' of struct wma_txrx_node. To avoid such issue, change the type of 'aid' in struct wma_txrx_node, from u8 to u16. CRs-Fixed: 2713427 Change-Id: If360c017700aadaf9f2d3216601a011704f68180 --- core/wma/inc/wma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h index 647d0c6786a5..f5fe1f8fb479 100644 --- a/core/wma/inc/wma.h +++ b/core/wma/inc/wma.h @@ -723,7 +723,7 @@ struct wma_txrx_node { bool vdev_active; uint64_t tsfadjust; tAddStaParams *addBssStaContext; - uint8_t aid; + uint16_t aid; uint8_t rmfEnabled; uint32_t uapsd_cached_val; void *del_staself_req;