diff options
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index d4c7928a0f36..40969b683fdd 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -3152,7 +3152,7 @@ isert_accept_np(struct iscsi_np *np, struct iscsi_conn *conn) | |||
3152 | 3152 | ||
3153 | accept_wait: | 3153 | accept_wait: |
3154 | ret = down_interruptible(&isert_np->np_sem); | 3154 | ret = down_interruptible(&isert_np->np_sem); |
3155 | if (max_accept > 5) | 3155 | if (ret || max_accept > 5) |
3156 | return -ENODEV; | 3156 | return -ENODEV; |
3157 | 3157 | ||
3158 | spin_lock_bh(&np->np_thread_lock); | 3158 | spin_lock_bh(&np->np_thread_lock); |