ipw2200: fix error return code in ipw_load()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 21 Jun 2013 02:42:19 +0000 (10:42 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Jun 2013 18:44:23 +0000 (14:44 -0400)
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>
drivers/net/wireless/ipw2x00/ipw2200.c

index d96257b79a84a90c4f0c14ff8273f4e53dc86057..312fa0e42e6f5e0f29bf66e810a9bc4c41ca271a 100644 (file)
@@ -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;
        }