Commit 9d5010db authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

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

Requested by Johannes Berg.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment