diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-01-06 19:25:43 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-01-07 22:57:51 +0100 |
commit | 373a4cd7378220d3c5a69fd369b1d78fee3207b2 (patch) | |
tree | 5e9905ca689767da95d7e69dd05a67412503a0eb /drivers/target | |
parent | target/fcoe: Add tag support to tcm_fc (diff) | |
download | linux-373a4cd7378220d3c5a69fd369b1d78fee3207b2.tar.xz linux-373a4cd7378220d3c5a69fd369b1d78fee3207b2.zip |
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>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions