Message ID | 20200602175525.GB53769@decadent.org.uk |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c index cc841126147e..f870396e05e1 100644 --- a/drivers/net/slip/slip.c +++ b/drivers/net/slip/slip.c @@ -867,7 +867,10 @@ static int slip_open(struct tty_struct *tty) sl->tty = NULL; tty->disc_data = NULL; clear_bit(SLF_INUSE, &sl->flags); + /* do not call free_netdev before rtnl_unlock */ + rtnl_unlock(); sl_free_netdev(sl->dev); + return err; err_exit: rtnl_unlock();