drivers: use free_netdev before return
PATCH v2 1/1 drivers: use free_netdev before return
We will replace the old version ofundo_user_init and use out_free_netdev
--- arch/um/drivers/vector_kern.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
arch/um/drivers/vector_kern.c +1 -4
@@ -1646,7 +1646,7 @@ static void vector_eth_configure( err =register_netdevice (dev);rtnl_unlock ();if (err) - goto out_undo_user_init; + goto out_free_netdev;spin_lock (&vector_devices_lock);list_add (&device->list, &vector_devices);
@@ -1654,9 +1654,6 @@ static void vector_eth_configure(return ; -out_undo_user_init: -free_netdev (dev); -return ; out_free_netdev:free_netdev (dev); out_free_device:
Signature · 1 line
2.39.0
Quoted 22 lines · Minjie Du
We will replace the old version of
undo_user_initand useout_free_netdevSigned-off-by Minjie Du <[email protected]>--- arch/um/drivers/vector_kern.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)arch/um/drivers/vector_kern.c +1
-1@@ -1646,7 +1646,7 @@ static void vector_eth_configure( err =register_netdevice (dev);rtnl_unlock ();if (err) - goto out_undo_user_init; + goto out_free_netdev;spin_lock (&vector_devices_lock);list_add (&device->list, &vector_devices);
arch/um/drivers/vector_kern.c static void vector_eth_configure( · line 1659
Quoted 9 lines
arch/um/drivers/vector_kern.c +0
-3@@ -1654,9 +1654,6 @@ static void vector_eth_configure(return ; -out_undo_user_init: -free_netdev (dev); -return ; out_free_netdev:free_netdev (dev); out_free_device:
Signature · 8 lines
Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/ _______________________________________________ linux-um mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-um
Re: [PATCH v2] drivers: use free_netdev before return in vector_eth_configure()
In reply to Minjie DuWould the information “um: vector: …” be more appropriate for the subsystem specification in the patch subject?
Quoted 2 lines
We will replace the old version of
undo_user_initand useout_free_netdev
Please choose a better imperative change suggestion.
How do you think about to add the tag “Fixes”?
Regards,
Markus
_______________________________________________
linux-um mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-um