3.16.42-rc1 review patch. If anyone has any objections, please let me know.
------------------ From: Wei Yongjun <weiyongj...@huawei.com> 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. Fixes: 05eb23893c2c ("cxgb4/iw_cxgb4: Doorbell Drop Avoidance Bug Fixes") Signed-off-by: Wei Yongjun <weiyongj...@huawei.com> Acked-by: Steve Wise <sw...@opengridcomputing.com> Signed-off-by: Doug Ledford <dledf...@redhat.com> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <b...@decadent.org.uk> --- --- a/drivers/infiniband/hw/cxgb4/device.c +++ b/drivers/infiniband/hw/cxgb4/device.c @@ -694,6 +694,7 @@ static int c4iw_rdev_open(struct c4iw_rd __get_free_page(GFP_KERNEL); if (!rdev->status_page) { pr_err(MOD "error allocating status page\n"); + err = -ENOMEM; goto err4; } rdev->status_page->db_off = 0;