[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yt1w3MvAI7M4rKbD@kroah.com>
Date: Sun, 24 Jul 2022 18:18:36 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Martin Kaiser <martin@...ser.cx>
Cc: Larry Finger <Larry.Finger@...inger.net>,
Phillip Potter <phil@...lpotter.co.uk>,
Michael Straube <straube.linux@...il.com>,
Pavel Skripkin <paskripkin@...il.com>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: r8188eu: handle errors from
ReadAdapterInfo8188EU
On Sun, Jul 24, 2022 at 06:14:05PM +0200, Martin Kaiser wrote:
> --- a/drivers/staging/r8188eu/os_dep/usb_intf.c
> +++ b/drivers/staging/r8188eu/os_dep/usb_intf.c
> @@ -332,7 +332,8 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
> rtl8188eu_interface_configure(padapter);
>
> /* step read efuse/eeprom data and get mac_addr */
> - ReadAdapterInfo8188EU(padapter);
> + if (ReadAdapterInfo8188EU(padapter) < 0)
> + goto handle_dualmac;
You threw away the error returned to you here, why? Shouldn't it
propagate upward?
thanks,
greg k-h
Powered by blists - more mailing lists