summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarada Prasanna Garnayak <sgarna@codeaurora.org>2017-07-11 13:01:19 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-24 00:04:54 -0700
commitd8bfab393ad856c9f43c3293676763ef1ecb5b68 (patch)
tree033330c3d7ebd0846a182edf6ba1dbdd6ba2f911
parent9023a992a898bf03eccc0c1bab50093259181557 (diff)
wcnss: fix the potential buffer flow issue in firmware setup
Add the check against negative or invalid firmware size passed by the userspace thread in firmware setup sysfs write operation. Update the datatype of the variable which holds the firmware size passed by userspace thread during firmware setup and WLAN calibration data update process. CRs-Fixed: 2072966 Change-Id: I8c84ad0d1b0a5f44a39c9c5b228734b0f693e8dd Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
-rw-r--r--drivers/net/wireless/wcnss/wcnss_wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wcnss/wcnss_wlan.c b/drivers/net/wireless/wcnss/wcnss_wlan.c
index 505a9e016777..9347882fba92 100644
--- a/drivers/net/wireless/wcnss/wcnss_wlan.c
+++ b/drivers/net/wireless/wcnss/wcnss_wlan.c
@@ -397,7 +397,7 @@ static struct {
int user_cal_read;
int user_cal_available;
u32 user_cal_rcvd;
- int user_cal_exp_size;
+ u32 user_cal_exp_size;
int iris_xo_mode_set;
int fw_vbatt_state;
char wlan_nv_macAddr[WLAN_MAC_ADDR_SIZE];