diff options
author | Federico Vaga <federico.vaga@gmail.com> | 2013-04-15 06:42:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-05 02:38:18 +0200 |
commit | 75e448036bece2f7dfa96ec4a68410c68208a951 (patch) | |
tree | 68973b70f041a8773667b9f5651bdd31773b30e6 /arch/sparc | |
parent | Merge tag 'boards-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
download | linux-75e448036bece2f7dfa96ec4a68410c68208a951.tar.xz linux-75e448036bece2f7dfa96ec4a68410c68208a951.zip |
sparc/kernel/vio.c: add put_device() after device_find_child()
The vio_remove() function uses device_find_child() but it does not drop
the reference of the retrieved child.
Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/vio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/vio.c b/arch/sparc/kernel/vio.c index 3e244f31e56b..8647fcc5ca6c 100644 --- a/arch/sparc/kernel/vio.c +++ b/arch/sparc/kernel/vio.c @@ -342,6 +342,7 @@ static void vio_remove(struct mdesc_handle *hp, u64 node) printk(KERN_INFO "VIO: Removing device %s\n", dev_name(dev)); device_unregister(dev); + put_device(dev); } } |