Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95de86cf authored by Brian King's avatar Brian King Committed by David S. Miller
Browse files

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: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 676a1184
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
	}