Patch "cxgb3: fix error return code in t3_sge_alloc_qset()" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    cxgb3: fix error return code in t3_sge_alloc_qset()

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     cxgb3-fix-error-return-code-in-t3_sge_alloc_qset.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From foo@baz Sun Dec  6 10:19:03 AM CET 2020
From: Zhang Changzhong <zhangchangzhong@xxxxxxxxxx>
Date: Wed, 2 Dec 2020 17:56:05 +0800
Subject: cxgb3: fix error return code in t3_sge_alloc_qset()

From: Zhang Changzhong <zhangchangzhong@xxxxxxxxxx>

[ Upstream commit ff9924897f8bfed82e61894b373ab9d2dfea5b10 ]

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: b1fb1f280d09 ("cxgb3 - Fix dma mapping error path")
Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Zhang Changzhong <zhangchangzhong@xxxxxxxxxx>
Acked-by: Raju Rangoju <rajur@xxxxxxxxxxx>
Link: https://lore.kernel.org/r/1606902965-1646-1-git-send-email-zhangchangzhong@xxxxxxxxxx
Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/net/ethernet/chelsio/cxgb3/sge.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/net/ethernet/chelsio/cxgb3/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/sge.c
@@ -3176,6 +3176,7 @@ int t3_sge_alloc_qset(struct adapter *ad
 			  GFP_KERNEL | __GFP_COMP);
 	if (!avail) {
 		CH_ALERT(adapter, "free list queue 0 initialization failed\n");
+		ret = -ENOMEM;
 		goto err;
 	}
 	if (avail < q->fl[0].size)


Patches currently in stable-queue which might be from zhangchangzhong@xxxxxxxxxx are

queue-5.9/cxgb3-fix-error-return-code-in-t3_sge_alloc_qset.patch
queue-5.9/vxlan-fix-error-return-code-in-__vxlan_dev_create.patch
queue-5.9/net-pasemi-fix-error-return-code-in-pasemi_mac_open.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux