Patch "iw_cxgb4: Fix error return code in c4iw_rdev_open()" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iw_cxgb4: Fix error return code in c4iw_rdev_open()
to the 4.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:
iw_cxgb4-fix-error-return-code-in-c4iw_rdev_open.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
15f7e3c21b76598bc6e5816d2577ce843b2b963fMon Sep 17 00:00:00 2001
From: Wei Yongjun <[email protected]>
Date: Sat, 17 Sep 2016 00:41:37 +0000
Subject: iw_cxgb4: Fix error return code in c4iw_rdev_open()
From: Wei Yongjun <[email protected]>
commit 15f7e3c21b76598bc6e5816d2577ce843b2b963f upstream.
Fix to return error code -ENOMEM from the __get_free_page() error handling case instead of 0, as done elsewhere in this function.
--- drivers/infiniband/hw/cxgb4/device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/infiniband/hw/cxgb4/device.c +3 -1
@@ -828,8 +828,10 @@ static int c4iw_rdev_open(struct c4iw_rd } rdev->status_page = (struct t4_dev_status_page *)__get_free_page (GFP_KERNEL ); -if (!rdev->status_page) +if (!rdev->status_page) { + err = -ENOMEM ; goto destroy_ocqp_pool; + } rdev->status_page->qp_start = rdev->lldi.vr->qp.start; rdev->status_page->qp_size = rdev->lldi.vr->qp.size; rdev->status_page->cq_start = rdev->lldi.vr->cq.start;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/nfs-fix-typo-in-parameter-description.patch queue-4.9/remoteproc-st-fix-error-return-code-in-st_rproc_probe.patch queue-4.9/iw_cxgb4-fix-error-return-code-in-c4iw_rdev_open.patch