Re: [PATCH 4.4 112/117] rtlwifi: rtl8821ae: Fix errors in parameter initialization
From: Ben Hutchings
Date: Tue Feb 16 2016 - 13:46:32 EST
On Sun, 2016-02-14 at 14:22 -0800, Greg Kroah-Hartman wrote:
> 4.4-stable review patch.ÂÂIf anyone has any objections, please let me know.
>
> ------------------
>
> From: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
>
> commit 78bae1de422a7f6f2b4b61f6a5c379e3d7f96f44 upstream.
>
> This driver failed to copy parameters sw_crypto and disable_watchdog into
> the locations actually used by the driver. In addition, msi_support was
> initialized three times and one of them used the wrong variable. The
> initialization of parameter int_clear was moved so that it is near that
> of the rest of the parameters.
>
> Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
> Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
>
> ---
> Âdrivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c |ÂÂÂÂ9 +++++----
> Â1 file changed, 5 insertions(+), 4 deletions(-)
>
> --- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c
[...]
> @@ -168,12 +166,15 @@ int rtl8821ae_init_sw_vars(struct ieee80
> Â rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
> Â rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
> Â rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support;
> - rtlpci->msi_support = rtlpriv->cfg->mod_params->int_clear;
> + rtlpci->int_clear = rtlpriv->cfg->mod_params->int_clear;
> + rtlpriv->cfg->mod_params->sw_crypto =
> + rtlpriv->cfg->mod_params->sw_crypto;
> + rtlpriv->cfg->mod_params->disable_watchdog =
> + rtlpriv->cfg->mod_params->disable_watchdog;
[...]
This is self-assignment. ÂHow is that going to help?
Ben.
--
Ben Hutchings
Life is what happens to you while you're busy making other plans.
- John LennonAttachment:
signature.asc
Description: This is a digitally signed message part