提交 9d5010db 编写于 作者: D David S. Miller 提交者: David S. Miller

[NET]: Add a might_sleep() to dev_close().

Requested by Johannes Berg.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 86bba269
......@@ -1060,6 +1060,8 @@ int dev_open(struct net_device *dev)
*/
int dev_close(struct net_device *dev)
{
might_sleep();
if (!(dev->flags & IFF_UP))
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册