[NET]: Add a might_sleep() to dev_close().
Requested by Johannes Berg. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
86bba269d0
commit
9d5010db7e
@@ -1060,6 +1060,8 @@ int dev_open(struct net_device *dev)
|
|||||||
*/
|
*/
|
||||||
int dev_close(struct net_device *dev)
|
int dev_close(struct net_device *dev)
|
||||||
{
|
{
|
||||||
|
might_sleep();
|
||||||
|
|
||||||
if (!(dev->flags & IFF_UP))
|
if (!(dev->flags & IFF_UP))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user