Commit 5d9e3bc2 authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f56e121d
...@@ -3548,6 +3548,7 @@ static int ipw_load(struct ipw_priv *priv) ...@@ -3548,6 +3548,7 @@ static int ipw_load(struct ipw_priv *priv)
ipw_rx_queue_reset(priv, priv->rxq); ipw_rx_queue_reset(priv, priv->rxq);
if (!priv->rxq) { if (!priv->rxq) {
IPW_ERROR("Unable to initialize Rx queue\n"); IPW_ERROR("Unable to initialize Rx queue\n");
rc = -ENOMEM;
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment