diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-01-06 10:25:43 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-01-07 13:57:51 -0800 |
commit | 373a4cd7378220d3c5a69fd369b1d78fee3207b2 (patch) | |
tree | 5e9905ca689767da95d7e69dd05a67412503a0eb /drivers/target/target_core_user.c | |
parent | 091b70623e2b9caee1c27190c3a5614b3563a672 (diff) | |
download | lwn-373a4cd7378220d3c5a69fd369b1d78fee3207b2.tar.gz lwn-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/target_core_user.c')
0 files changed, 0 insertions, 0 deletions