]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDoug Ledford <dledford@redhat.com>
Thu, 8 Dec 2016 15:03:36 +0000 (10:03 -0500)
commita5c4a92af372c3f0860a4b366b0a53571184e00f
tree7f1930f5856063f5c2d9dab9a053c0ed48100241
parentf6b2dc9d91db3ccd530c76dac16bdb9724295ee0
iw_cxgb4: Fix error return code in c4iw_rdev_open()

Fix to return error code -ENOMEM from the __get_free_page() error
handling case instead of 0, as done elsewhere in this function.

Fixes: d38ed6aa8aed ("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>
drivers/infiniband/hw/cxgb4/device.c