Skip to contentSkip to conversation

rtl8188eu: os_dep: replace rtw_malloc and memset with rtw_zmalloc

PATCH Applied Fuqian Huang 1 participant 1 message Jun 27, 2019 Staging

v1 of 3 Applied Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 51/87 rtl8188eu: os_dep: replace rtw_malloc and memset with rtw_zmalloc

rtw_malloc + memset(0) -> rtw_zmalloc

---
 drivers/staging/rtl8188eu/os_dep/mlme_linux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8188eu/os_dep/mlme_linux.c +1 -2
index 9db11b16cb93..250acb01d1a9 100644
@@ -98,10 +98,9 @@ void rtw_report_sec_ie(struct adapter *adapter, u8 authmode, u8 *sec_ie)
 	if (authmode == _WPA_IE_ID_) {
 		RT_TRACE(_module_mlme_osdep_c_, _drv_info_,
 			 ("rtw_report_sec_ie, authmode=%d\n", authmode));
-		buff = rtw_malloc(IW_CUSTOM_MAX);
+		buff = rtw_zmalloc(IW_CUSTOM_MAX);
 		if (!buff)
 			return;
-		memset(buff, 0, IW_CUSTOM_MAX);
 		p = buff;
 		p += sprintf(p, "ASSOCINFO(ReqIEs =");
 		len = sec_ie[1] + 2;
Signature · 1 line
2.11.0