linux/drivers/infiniband/ulp/isert
Nicholas Bellinger 373a4cd737 iser-target: Fix non negative ERR_PTR isert_device_get usage
As reported by Dan, isert_create_device_ib_res() failure within
isert_device_get() can potentially return a postive value,
resulting in ERR_PTR() triggering a NULL pointer dereference.

Caught by the static checker:

     drivers/infiniband/ulp/isert/ib_isert.c:423 isert_device_get()
     error: passing non negative 1 to ERR_PTR

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2016-01-07 13:57:51 -08:00
..
ib_isert.c iser-target: Fix non negative ERR_PTR isert_device_get usage 2016-01-07 13:57:51 -08:00
ib_isert.h iser-target: Port to new memory registration API 2015-10-28 22:27:18 -04:00
isert_proto.h
Kconfig treewide: Fix typo in Kconfig 2013-10-14 15:23:02 +02:00
Makefile