]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Jul 2017 07:22:47 +0000 (10:22 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:49 +0000 (11:20 -0400)
commit653f0a71daf1a71d55d3af368c28c8114c11c607
tree2cb5c96ca2858dd61e19f2b6f6bfcfaae5aed027
parentaf56e53ccd29bda062a1ae75276dc9c0f8eedf47
RDMA/bnxt_re: checking for NULL instead of IS_ERR()

bnxt_re_alloc_mw() doesn't return NULL, it returns error pointers.

Fixes: 9152e0b722b2 ("RDMA/bnxt_re: HW workarounds for handling specific conditions")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c