mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
staging: r8188eu: handle rtl8188eu_inirp_init errors
The rtl8188eu_inirp_init returns 0 for success or a negative error code. Handle this return value in the two places where rtl8188eu_inirp_init is called. Suggested-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: Martin Kaiser <martin@kaiser.cx> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Link: https://lore.kernel.org/r/20230206201800.139195-6-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
49c41602a3
commit
da61c45f48
1 changed files with 4 additions and 2 deletions
|
@ -631,7 +631,8 @@ static int _netdev_open(struct net_device *pnetdev)
|
|||
pr_info("can't init mlme_ext_priv\n");
|
||||
goto netdev_open_error;
|
||||
}
|
||||
rtl8188eu_inirp_init(padapter);
|
||||
if (rtl8188eu_inirp_init(padapter))
|
||||
goto netdev_open_error;
|
||||
|
||||
rtw_led_control(padapter, LED_CTL_NO_LINK);
|
||||
|
||||
|
@ -683,7 +684,8 @@ static int ips_netdrv_open(struct adapter *padapter)
|
|||
if (status == _FAIL)
|
||||
goto netdev_open_error;
|
||||
|
||||
rtl8188eu_inirp_init(padapter);
|
||||
if (rtl8188eu_inirp_init(padapter))
|
||||
goto netdev_open_error;
|
||||
|
||||
rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
|
||||
_set_timer(&padapter->mlmepriv.dynamic_chk_timer, 5000);
|
||||
|
|
Loading…
Reference in a new issue