diff options
author | Varun Prakash <varun@chelsio.com> | 2016-12-11 22:05:56 +0530 |
---|---|---|
committer | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-12-16 11:16:15 +0100 |
commit | 83337e544323a8bd7492994d64af339175ac7107 (patch) | |
tree | c3b9d9dd2438fd5792a18da2652ed32e5889585c /drivers/of/fdt_address.c | |
parent | a3960ced84b8049783de678abf8cd680ee14175f (diff) | |
download | blackbird-op-linux-83337e544323a8bd7492994d64af339175ac7107.tar.gz blackbird-op-linux-83337e544323a8bd7492994d64af339175ac7107.zip |
iscsi-target: Return error if unable to add network portal
If iscsit_tpg_add_network_portal() fails then
return error code instead of 0 to user space.
If iscsi-target returns 0 then user space keeps
on retrying same command infinitely, targetcli or
echo hangs till command completes with non zero
return value. In some cases it is possible that
add network portal command never completes with
success even after retrying multiple times,
for example - cxgbit_setup_np() always returns
-EINVAL if portal IP does not belong to Chelsio
adapter interface.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
[ bvanassche: Added "Fixes:" and "Cc: stable" tags ]
Fixes: commit d4b3fa4b0881 ("iscsi-target: Make iscsi_tpg_np driver show/store use generic code")
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'drivers/of/fdt_address.c')
0 files changed, 0 insertions, 0 deletions