mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-08 02:21:18 +00:00
ipw2200: fix error return code in ipw_load()
Fix to return -ENOMEM in the ipw_rx_queue_alloc() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f56e121df3
commit
5d9e3bc21c
@ -3548,6 +3548,7 @@ static int ipw_load(struct ipw_priv *priv)
|
||||
ipw_rx_queue_reset(priv, priv->rxq);
|
||||
if (!priv->rxq) {
|
||||
IPW_ERROR("Unable to initialize Rx queue\n");
|
||||
rc = -ENOMEM;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user