linux-stable/drivers/infiniband
Dan Carpenter bc1251e6d9 RDMA/nes: checking for NULL instead of IS_ERR
nes_reg_phys_mr() returns ERR_PTRs on error.  It doesn't return NULL.

This bug has been there for a while, but we recently changed from
calling a function pointer to calling nes_reg_phys_mr() directly so now
Smatch is able to detect the bug.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-01-19 15:17:40 -05:00
..
core IB/sysfs: Fix sparse warning on attr_id 2016-01-19 14:12:56 -05:00
hw RDMA/nes: checking for NULL instead of IS_ERR 2016-01-19 15:17:40 -05:00
ulp IB/IPoIB: Fix kernel panic on multicast flow 2016-01-19 12:59:54 -05:00
Kconfig IB/cma: Add configfs for rdma_cm 2015-12-23 10:39:52 -05:00
Makefile