]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
qed: Fix an error code qed_ll2_start_xmit()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Dec 2018 07:05:13 +0000 (10:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 23:43:44 +0000 (15:43 -0800)
We accidentally deleted the code to set "rc = -ENOMEM;" and this patch
adds it back.

Fixes: d2201a21598a ("qed: No need for LL2 frags indication")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_ll2.c

index aa633381aa47ea3bc13de4829bde316448ee0d6b..c6f4bab67a5fc30e28e22c2f4b0bcb391667730b 100644 (file)
@@ -2496,6 +2496,7 @@ static int qed_ll2_start_xmit(struct qed_dev *cdev, struct sk_buff *skb,
                if (unlikely(dma_mapping_error(&cdev->pdev->dev, mapping))) {
                        DP_NOTICE(cdev,
                                  "Unable to map frag - dropping packet\n");
+                       rc = -ENOMEM;
                        goto err;
                }