diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2014-09-26 23:40:28 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-30 19:17:38 +0200 |
commit | ef09396ef622572c604d4977e76f6151ef68ed21 (patch) | |
tree | 3b4d123539b4446455112e4e74b21daa590db100 /drivers/net/wireless/rtlwifi/rtl8821ae | |
parent | rtlwifi: rtl8188ee: rtl8192com: rtl8192cu: rtl8192ee: rtl8723ae: rtl87323be: ... (diff) | |
download | linux-ef09396ef622572c604d4977e76f6151ef68ed21.tar.xz linux-ef09396ef622572c604d4977e76f6151ef68ed21.zip |
rtlwifi: rtl8188ee: rtl8723ae: rtl8821ae: Initialize some variables
In a number of places, kmalloc or valloc were used to acquire memory.
To ensure that these locations are correctly initialized, the calls were
changed to kzalloc and vzalloc. The change fixes a problem that was causing
HT operations to be cancelled.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8821ae')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8821ae/sw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8821ae/sw.c b/drivers/net/wireless/rtlwifi/rtl8821ae/sw.c index 3cf7557b7786..fc92dd6a0d07 100644 --- a/drivers/net/wireless/rtlwifi/rtl8821ae/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8821ae/sw.c @@ -95,7 +95,7 @@ static void load_wowlan_fw(struct rtl_priv *rtlpriv) int err; /* for wowlan firmware buf */ - rtlpriv->rtlhal.wowlan_firmware = vmalloc(0x8000); + rtlpriv->rtlhal.wowlan_firmware = vzalloc(0x8000); if (!rtlpriv->rtlhal.wowlan_firmware) { RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Can't alloc buffer for wowlan fw.\n"); |