From 48ae5d53617f3eacff825a128c56bd74b4860bea Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 5 Jul 2023 14:46:41 +0100 Subject: [linux] Fix error control flow in tap_probe() Signed-off-by: Michael Brown --- src/drivers/linux/tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/linux/tap.c b/src/drivers/linux/tap.c index ff1e08bdb..9b52c20ab 100644 --- a/src/drivers/linux/tap.c +++ b/src/drivers/linux/tap.c @@ -231,9 +231,9 @@ static int tap_probe(struct linux_device *device, struct linux_device_request *r return 0; -err_settings: unregister_netdev(netdev); err_register: +err_settings: netdev_nullify(netdev); netdev_put(netdev); return rc; -- cgit