diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c index aa97dbc797b6be339e911a9c34d55778040fdad4..5d338b2ac39e1dd20e7b57f2bb630377fb16b729 100644 --- a/drivers/net/can/slcan.c +++ b/drivers/net/can/slcan.c @@ -613,6 +613,7 @@ static int slcan_open(struct tty_struct *tty) sl->tty = NULL; tty->disc_data = NULL; clear_bit(SLF_INUSE, &sl->flags); + free_netdev(sl->dev); err_exit: rtnl_unlock();