|
@@ -4622,13 +4622,13 @@ int sctp_for_each_endpoint(int (*cb)(struct sctp_endpoint *, void *),
|
|
|
|
|
|
for (head = sctp_ep_hashtable; hash < sctp_ep_hashsize;
|
|
|
hash++, head++) {
|
|
|
- read_lock(&head->lock);
|
|
|
+ read_lock_bh(&head->lock);
|
|
|
sctp_for_each_hentry(epb, &head->chain) {
|
|
|
err = cb(sctp_ep(epb), p);
|
|
|
if (err)
|
|
|
break;
|
|
|
}
|
|
|
- read_unlock(&head->lock);
|
|
|
+ read_unlock_bh(&head->lock);
|
|
|
}
|
|
|
|
|
|
return err;
|