rsi: fix an error code in rsi_probe()
Subsystems (2)
PATCH 1/1 rsi: fix an error code in rsi_probe()
Return -ENODEV instead of success for unsupported devices.
Fixes 54fdb318c111 ("rsi: add new device model for 9116")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/net/wireless/rsi/rsi_91x_usb.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/rsi/rsi_91x_usb.c +1 -0
@@ -816,6 +816,7 @@ static int rsi_probe(struct usb_interface *pfunction, }else {rsi_dbg (ERR_ZONE ,"%s: Unsupported RSI device id 0x%x\n" , __func__, id->idProduct); + status = -ENODEV ; goto err1; }
Signature · 1 line
2.20.1
Quoted 4 lines · Dan Carpenter
Return
-ENODEVinstead of success for unsupported devices.Fixes 54fdb318c111 ("rsi: add new device model for 9116")Signed-off-by Dan Carpenter <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
9adcdf6758d7 rsi: fix an error code in rsi_probe()
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/20210816183947.GA2119@kili/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches