Commit e56a56c1 authored by Dave Jones's avatar Dave Jones

[PATCH] eicon driver was sleeping with lock held.

parent a4d15165
...@@ -665,8 +665,11 @@ if_readstatus(u_char * buf, int len, int user, int id, int channel) ...@@ -665,8 +665,11 @@ if_readstatus(u_char * buf, int len, int user, int id, int channel)
else else
cnt = skb->len; cnt = skb->len;
if (user) if (user) {
spin_unlock_irqrestore(&eicon_lock, flags);
copy_to_user(p, skb->data, cnt); copy_to_user(p, skb->data, cnt);
spin_lock_irqsave(&eicon_lock, flags);
}
else else
memcpy(p, skb->data, cnt); memcpy(p, skb->data, cnt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment