]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hns: checking for IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Aug 2017 08:12:08 +0000 (11:12 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 4 Aug 2017 19:09:56 +0000 (15:09 -0400)
commitfc950d170c3b261ba4e313e4d716ff7376619457
tree9cca0d79c9da729f94ac883f163b9ed4c3732b70
parent5591bba1d75b85628ab8ec6f90cdd2dfed58eef8
IB/hns: checking for IS_ERR() instead of NULL

The hns_roce_v1_create_lp_qp() returns NULL on error, not error pointers.

Fixes: 6f39e2d3e772 ("IB/hns: Fix the bug when free mr")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c