提交 63f991b2 编写于 作者: A Alan Stern 提交者: Greg Kroah-Hartman

USB: fix location of statement label in dummy-hcd

This patch (as984) fixes a rather elementary mistake in dummy_hcd.
The new statement label should come before the spin_unlock_irqrestore,
not after it.
Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e015268d
...@@ -1001,8 +1001,8 @@ static int dummy_urb_enqueue ( ...@@ -1001,8 +1001,8 @@ static int dummy_urb_enqueue (
if (!timer_pending (&dum->timer)) if (!timer_pending (&dum->timer))
mod_timer (&dum->timer, jiffies + 1); mod_timer (&dum->timer, jiffies + 1);
spin_unlock_irqrestore (&dum->lock, flags);
done: done:
spin_unlock_irqrestore(&dum->lock, flags);
return rc; return rc;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册