mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
iser-target: Fix smatch warning
Unused return value from down_interruptible Reported-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
6e14eab90a
commit
1acff63f6e
@ -3152,7 +3152,7 @@ isert_accept_np(struct iscsi_np *np, struct iscsi_conn *conn)
|
||||
|
||||
accept_wait:
|
||||
ret = down_interruptible(&isert_np->np_sem);
|
||||
if (max_accept > 5)
|
||||
if (ret || max_accept > 5)
|
||||
return -ENODEV;
|
||||
|
||||
spin_lock_bh(&np->np_thread_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user