diff options
author | David S. Miller <davem@kimchee.(none)> | 2007-09-12 08:33:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:15 -0400 |
commit | 9d5010db7ecfd6ec00119d3b185c4c0cd3265167 (patch) | |
tree | 20787fa45cb901c149aacc58b260dd86e5404e05 /net | |
parent | 86bba269d08f0c545ae76c90b56727f65d62d57f (diff) |
[NET]: Add a might_sleep() to dev_close().
Requested by Johannes Berg.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 215b8e97690a..d16dcab49c60 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1060,6 +1060,8 @@ int dev_open(struct net_device *dev) | |||
1060 | */ | 1060 | */ |
1061 | int dev_close(struct net_device *dev) | 1061 | int dev_close(struct net_device *dev) |
1062 | { | 1062 | { |
1063 | might_sleep(); | ||
1064 | |||
1063 | if (!(dev->flags & IFF_UP)) | 1065 | if (!(dev->flags & IFF_UP)) |
1064 | return 0; | 1066 | return 0; |
1065 | 1067 | ||