netxen: handle firmware load errors
Unwind allocations and release file firmware when when firmware load fails. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6ec1c69a8f
commit
db4cfd8a61
@@ -566,6 +566,9 @@ netxen_send_cmd_descs(struct netxen_adapter *adapter,
|
||||
|
||||
i = 0;
|
||||
|
||||
if (adapter->is_up != NETXEN_ADAPTER_UP_MAGIC)
|
||||
return -EIO;
|
||||
|
||||
tx_ring = adapter->tx_ring;
|
||||
__netif_tx_lock_bh(tx_ring->txq);
|
||||
|
||||
|
Reference in New Issue
Block a user