mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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: 82242d28ff ("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>
This commit is contained in:
parent
8b498817d6
commit
c62cdd3e91
|
|
@ -30,7 +30,6 @@ static struct {
|
|||
|
||||
static void gio_bus_release(struct device *dev)
|
||||
{
|
||||
kfree(dev);
|
||||
}
|
||||
|
||||
static struct device gio_bus = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user