patch-2.4.19 linux-2.4.19/drivers/isdn/eicon/eicon_mod.c

Next file: linux-2.4.19/drivers/isdn/hisax/Makefile
Previous file: linux-2.4.19/drivers/isdn/eicon/eicon.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/isdn/eicon/eicon_mod.c linux-2.4.19/drivers/isdn/eicon/eicon_mod.c
@@ -665,8 +665,11 @@
 			else
 				cnt = skb->len;
 
-			if (user)
+			if (user) {
+				spin_unlock_irqrestore(&eicon_lock, flags);
 				copy_to_user(p, skb->data, cnt);
+				spin_lock_irqsave(&eicon_lock, flags);
+			}
 			else
 				memcpy(p, skb->data, cnt);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)