]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: ip22-gio: fix kfree() of static object
authorJohan Hovold <johan@kernel.org>
Fri, 24 Apr 2026 10:28:45 +0000 (12:28 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 27 May 2026 07:50:11 +0000 (09:50 +0200)
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 <levex@linux.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/sgi-ip22/ip22-gio.c

index 9eec8842ffb70449c7d90db158b24ebf19ef941a..a574441fa44bffa421caae92448ec42ad52dcabb 100644 (file)
@@ -30,7 +30,6 @@ static struct {
 
 static void gio_bus_release(struct device *dev)
 {
-       kfree(dev);
 }
 
 static struct device gio_bus = {