diff options
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_ctx.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ctx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ctx.c b/drivers/net/qlcnic/qlcnic_ctx.c index 0a6a39914aec..c2c1f5cc16c6 100644 --- a/drivers/net/qlcnic/qlcnic_ctx.c +++ b/drivers/net/qlcnic/qlcnic_ctx.c | |||
@@ -421,7 +421,8 @@ int qlcnic_alloc_hw_resources(struct qlcnic_adapter *adapter) | |||
421 | 421 | ||
422 | if (addr == NULL) { | 422 | if (addr == NULL) { |
423 | dev_err(&pdev->dev, "failed to allocate tx desc ring\n"); | 423 | dev_err(&pdev->dev, "failed to allocate tx desc ring\n"); |
424 | return -ENOMEM; | 424 | err = -ENOMEM; |
425 | goto err_out_free; | ||
425 | } | 426 | } |
426 | 427 | ||
427 | tx_ring->desc_head = (struct cmd_desc_type0 *)addr; | 428 | tx_ring->desc_head = (struct cmd_desc_type0 *)addr; |