Skip to content

Commit

Permalink
[NET]: Add a might_sleep() to dev_close().
Browse files Browse the repository at this point in the history
Requested by Johannes Berg.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Oct 10, 2007
1 parent 86bba26 commit 9d5010d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9d5010d

Please sign in to comment.