]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci/rpadlpar: Fix device reference leaks
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 15:26:03 +0000 (16:26 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 09:05:59 +0000 (20:05 +1100)
commitbead22e92bab1ac1ceb260f7e9ad300c2ea4a75d
treedfc7558e285e3fdd40984bc0a3e5521937d2c462
parent57dbfc983d0c022f37ab6258aa8155e885f7fb9a
powerpc/pci/rpadlpar: Fix device reference leaks

Make sure to drop any device reference taken by vio_find_node() when
adding and removing virtual I/O slots.

Fixes: bba35adc5665 ("[PATCH] PCI Hotplug: rpaphp: Move VIO registration")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/pci/hotplug/rpadlpar_core.c