iw_cxgb4: Fix error return code in c4iw_rdev_open()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 17 Sep 2016 00:41:37 +0000 (00:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:07 +0000 (20:18 +0100)
commit4b07d85374f582fc3aa009deda62fcc26713146a
tree70abbdf733a30695ab750ea346b777593c4845d0
parentaa3ee06a2ae2fe7b7b65fc9a82d52b96f99ab1d6
iw_cxgb4: Fix error return code in c4iw_rdev_open()

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 <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>
drivers/infiniband/hw/cxgb4/device.c