[SCSI] iscsi: don't hang in endless loop if no targets present
[cascardo/linux.git] / drivers / scsi / scsi_transport_iscsi.c
index 97832a2..460d685 100644 (file)
@@ -2110,7 +2110,7 @@ iscsi_if_rx(struct sk_buff *skb)
                                break;
                        err = iscsi_if_send_reply(group, nlh->nlmsg_seq,
                                nlh->nlmsg_type, 0, 0, ev, sizeof(*ev));
-               } while (err < 0 && err != -ECONNREFUSED);
+               } while (err < 0 && err != -ECONNREFUSED && err != -ESRCH);
                skb_pull(skb, rlen);
        }
        mutex_unlock(&rx_queue_mutex);