slip: not call free_netdev before rtnl_unlock in slip_open
authoryangerkun <yangerkun@huawei.com>
Wed, 26 Feb 2020 03:54:35 +0000 (11:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:37:06 +0000 (20:37 -0800)
commitf596c87005f7b1baeb7d62d9a9e25d68c3dfae10
tree7fbf1945f6e80678ad03f8f2c59b06b92224e699
parentb6f6118901d1e867ac9177bbff3b00b185bd4fdc
slip: not call free_netdev before rtnl_unlock in slip_open

As the description before netdev_run_todo, we cannot call free_netdev
before rtnl_unlock, fix it by reorder the code.

Signed-off-by: yangerkun <yangerkun@huawei.com>
Reviewed-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip/slip.c