From: Amitkumar Karwar Date: Wed, 14 Mar 2012 02:36:49 +0000 (-0700) Subject: mwifiex: correction in structure name passed to sizeof() X-Git-Tag: MMI-PSA29.97-13-9~17259^2~48^2~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b093863edd20b64fa444b770a8701ddcbe9faea1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mwifiex: correction in structure name passed to sizeof() "hscfg" is declared as struct mwifiex_ds_hs_cfg. Use same structure name for calculating it's size. Signed-off-by: Amitkumar Karwar Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 64e0b1010850..d7b11defafe0 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c @@ -425,7 +425,7 @@ int mwifiex_enable_hs(struct mwifiex_adapter *adapter) adapter->hs_activate_wait_q_woken = false; - memset(&hscfg, 0, sizeof(struct mwifiex_hs_config_param)); + memset(&hscfg, 0, sizeof(struct mwifiex_ds_hs_cfg)); hscfg.is_invoke_hostcmd = true; if (mwifiex_set_hs_params(mwifiex_get_priv(adapter,