Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d5010db authored by David S. Miller's avatar David S. Miller Committed by David S. Miller
Browse files

[NET]: Add a might_sleep() to dev_close().



Requested by Johannes Berg.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 86bba269
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;