From: Dan Carpenter Date: Mon, 17 Dec 2018 07:05:13 +0000 (+0300) Subject: qed: Fix an error code qed_ll2_start_xmit() X-Git-Tag: MMI-QSB30.62-17~983^2~44^2~67 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6de29b8cd448490a6ba514d9f6b334341cf99eff;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git qed: Fix an error code qed_ll2_start_xmit() [ Upstream commit f07d4276892d97671e880190ff195a288b2d8d92 ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/net/ethernet/qlogic/qed/qed_ll2.c index 5f52f14761a3..b73bcbeb5f27 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_ll2.c +++ b/drivers/net/ethernet/qlogic/qed/qed_ll2.c @@ -2351,6 +2351,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; }