]> www.infradead.org Git - users/hch/configfs.git/commitdiff
net: ibm: emac: mal: fix wrong goto
authorRosen Penev <rosenp@gmail.com>
Mon, 7 Oct 2024 23:57:11 +0000 (16:57 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Oct 2024 01:25:52 +0000 (18:25 -0700)
dcr_map is called in the previous if and therefore needs to be unmapped.

Fixes: 1ff0fcfcb1a6 ("ibm_newemac: Fix new MAL feature handling")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20241007235711.5714-1-rosenp@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/emac/mal.c

index d92dd9c83031ee48b14ac744ced49c7740cdfe7a..0c5e22d14372ac949a72863dab9858081b8aa849 100644 (file)
@@ -578,7 +578,7 @@ static int mal_probe(struct platform_device *ofdev)
                printk(KERN_ERR "%pOF: Support for 405EZ not enabled!\n",
                                ofdev->dev.of_node);
                err = -ENODEV;
-               goto fail;
+               goto fail_unmap;
 #endif
        }