From: Johan Hovold Date: Fri, 24 Apr 2026 10:28:45 +0000 (+0200) Subject: MIPS: ip22-gio: fix kfree() of static object X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c62cdd3e919bdf84c37ec46810f87cdb1736e822;p=thirdparty%2Fkernel%2Flinux.git MIPS: ip22-gio: fix kfree() of static object The gio bus root device is a statically allocated object which must not be freed by kfree() on failure to register the device or bus. Fixes: 82242d28ff8b ("MIPS: IP22: Add missing put_device call") Cc: stable@vger.kernel.org # 3.17 Cc: Levente Kurusa Signed-off-by: Johan Hovold Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c index 9eec8842ffb70..a574441fa44bf 100644 --- a/arch/mips/sgi-ip22/ip22-gio.c +++ b/arch/mips/sgi-ip22/ip22-gio.c @@ -30,7 +30,6 @@ static struct { static void gio_bus_release(struct device *dev) { - kfree(dev); } static struct device gio_bus = {