Merge "FPII-2416 : Elevation of privilege vulnerability in Qualcomm Wi-Fi driver CVE-2016-6676 A-30874066" into fp/fp2_5.1_int
diff --git a/CORE/HDD/src/wlan_hdd_cfg.c b/CORE/HDD/src/wlan_hdd_cfg.c
index 735a914..6b03c49 100644
--- a/CORE/HDD/src/wlan_hdd_cfg.c
+++ b/CORE/HDD/src/wlan_hdd_cfg.c
@@ -3704,7 +3704,7 @@
// ideally we want to return the config to the application
// however the config is too big so we just printk() for now
#ifdef RETURN_IN_BUFFER
- if (curlen <= buflen)
+ if (curlen < buflen)
{
// copy string + '\0'
memcpy(pCur, configStr, curlen+1);