Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9d5010db7ecfd6ec00119d3b185c4c0cd3265167 Commit: 9d5010db7ecfd6ec00119d3b185c4c0cd3265167 Parent: 86bba269d08f0c545ae76c90b56727f65d62d57f Author: David S. Miller <[EMAIL PROTECTED](none)> AuthorDate: Wed Sep 12 14:33:25 2007 +0200 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Wed Oct 10 16:49:15 2007 -0700
[NET]: Add a might_sleep() to dev_close(). Requested by Johannes Berg. Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- 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 215b8e9..d16dcab 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html