From: Brian King Date: Wed, 28 Sep 2011 05:33:43 +0000 (+0000) Subject: ibmveth: Fix oops on request_irq failure X-Git-Tag: v3.1~39^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95de86cf5162f78bc5aea80d1a9e5a248196ffaf;p=platform%2Fkernel%2Flinux-amlogic.git ibmveth: Fix oops on request_irq failure If request_irq fails, the ibmveth driver will overwrite the rc and end up returning a successful rc on its open function, resulting in an oops later when a packet gets sent and buffers are not allocated due to the failed open. Signed-off-by: Brian King Signed-off-by: David S. Miller --- diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 8dd5fcc..d393f1e 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c @@ -636,8 +636,8 @@ static int ibmveth_open(struct net_device *netdev) netdev_err(netdev, "unable to request irq 0x%x, rc %d\n", netdev->irq, rc); do { - rc = h_free_logical_lan(adapter->vdev->unit_address); - } while (H_IS_LONG_BUSY(rc) || (rc == H_BUSY)); + lpar_rc = h_free_logical_lan(adapter->vdev->unit_address); + } while (H_IS_LONG_BUSY(lpar_rc) || (lpar_rc == H_BUSY)); goto err_out; }