diff options
-rw-r--r-- | drivers/isdn/mISDN/tei.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/isdn/mISDN/tei.c b/drivers/isdn/mISDN/tei.c index bfcdd97df95d..e04bad6c5baf 100644 --- a/drivers/isdn/mISDN/tei.c +++ b/drivers/isdn/mISDN/tei.c | |||
@@ -862,8 +862,7 @@ static int | |||
862 | ph_data_ind(struct manager *mgr, struct sk_buff *skb) | 862 | ph_data_ind(struct manager *mgr, struct sk_buff *skb) |
863 | { | 863 | { |
864 | int ret = -EINVAL; | 864 | int ret = -EINVAL; |
865 | struct layer2 *l2; | 865 | struct layer2 *l2, *nl2; |
866 | u_long flags; | ||
867 | u_char mt; | 866 | u_char mt; |
868 | 867 | ||
869 | if (skb->len < 8) { | 868 | if (skb->len < 8) { |
@@ -908,11 +907,9 @@ ph_data_ind(struct manager *mgr, struct sk_buff *skb) | |||
908 | new_tei_req(mgr, &skb->data[4]); | 907 | new_tei_req(mgr, &skb->data[4]); |
909 | goto done; | 908 | goto done; |
910 | } | 909 | } |
911 | read_lock_irqsave(&mgr->lock, flags); | 910 | list_for_each_entry_safe(l2, nl2, &mgr->layer2, list) { |
912 | list_for_each_entry(l2, &mgr->layer2, list) { | ||
913 | tei_ph_data_ind(l2->tm, mt, &skb->data[4], skb->len - 4); | 911 | tei_ph_data_ind(l2->tm, mt, &skb->data[4], skb->len - 4); |
914 | } | 912 | } |
915 | read_unlock_irqrestore(&mgr->lock, flags); | ||
916 | done: | 913 | done: |
917 | return ret; | 914 | return ret; |
918 | } | 915 | } |