[NET]: Add a might_sleep() to dev_close().
David S. Miller [Wed, 12 Sep 2007 12:33:25 +0000 (14:33 +0200)]
Requested by Johannes Berg.

Signed-off-by: David S. Miller <davem@davemloft.net>

net/core/dev.c

index 215b8e9..d16dcab 100644 (file)
@@ -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;