alistair23-linux/drivers/infiniband/ulp
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
..
ipoib Merge branch 'wr-cleanup' into k.o/for-4.4 2015-10-28 22:23:34 -04:00
iser IB/iser: Port to new fast registration API 2015-10-28 22:27:18 -04:00
isert iser-target: Fix non negative ERR_PTR isert_device_get usage 2016-01-07 13:57:51 -08:00
srp SCSI misc on 20151113 2015-11-13 20:35:54 -08:00
srpt Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2015-11-13 20:04:17 -08:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00