Skip to content

Commit bf705c0

Browse files
jhovoldgregkh
authored andcommitted
MIPS: ip22-gio: fix kfree() of static object
commit c62cdd3 upstream. 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: 82242d2 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c32ae1f commit bf705c0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/mips/sgi-ip22/ip22-gio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ static struct {
3030

3131
static void gio_bus_release(struct device *dev)
3232
{
33-
kfree(dev);
3433
}
3534

3635
static struct device gio_bus = {

0 commit comments

Comments
 (0)