mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
iw_cxgb4: Fix error return code in c4iw_rdev_open()
commit15f7e3c21bupstream. Fix to return error code -ENOMEM from the __get_free_page() error handling case instead of 0, as done elsewhere in this function. Fixes:05eb23893c("cxgb4/iw_cxgb4: Doorbell Drop Avoidance Bug Fixes") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aa3ee06a2a
commit
4b07d85374
@@ -828,8 +828,10 @@ static int c4iw_rdev_open(struct c4iw_rdev *rdev)
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user