projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86bba26
)
[NET]: Add a might_sleep() to dev_close().
author
David S. Miller
<davem@kimchee.(none)>
Wed, 12 Sep 2007 12:33:25 +0000
(14:33 +0200)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:15 +0000
(16:49 -0700)
Requested by Johannes Berg.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 215b8e97690aaab77f82dafeb09bb8391032b495..d16dcab49c605138c37b6200e1306b721c852e29 100644
(file)
--- 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;