]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cxgb3: fix error return code in t3_sge_alloc_qset()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Wed, 2 Dec 2020 09:56:05 +0000 (17:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 02:03:53 +0000 (18:03 -0800)
commitff9924897f8bfed82e61894b373ab9d2dfea5b10
treef4e5ae4104e4753efb695067213eda8c2990db47
parent6ee50c8e262a0f0693dad264c3c99e30e6442a56
cxgb3: fix error return code in t3_sge_alloc_qset()

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@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Acked-by: Raju Rangoju <rajur@chelsio.com>
Link: https://lore.kernel.org/r/1606902965-1646-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb3/sge.c