mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
qed: Fix an error code qed_ll2_start_xmit()
[ Upstream commitf07d427689] We accidentally deleted the code to set "rc = -ENOMEM;" and this patch adds it back. Fixes:d2201a2159("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
233ba13db6
commit
12024f4fc1
@@ -2485,6 +2485,7 @@ static int qed_ll2_start_xmit(struct qed_dev *cdev, struct sk_buff *skb,
|
|||||||
if (unlikely(dma_mapping_error(&cdev->pdev->dev, mapping))) {
|
if (unlikely(dma_mapping_error(&cdev->pdev->dev, mapping))) {
|
||||||
DP_NOTICE(cdev,
|
DP_NOTICE(cdev,
|
||||||
"Unable to map frag - dropping packet\n");
|
"Unable to map frag - dropping packet\n");
|
||||||
|
rc = -ENOMEM;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user