projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
150a8dc
)
sparc/kernel/vio.c: add put_device() after device_find_child()
author
Federico Vaga
<federico.vaga@gmail.com>
Mon, 15 Apr 2013 04:42:52 +0000
(
04:42
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 5 May 2013 00:38:18 +0000
(17:38 -0700)
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>
arch/sparc/kernel/vio.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/vio.c
b/arch/sparc/kernel/vio.c
index 3e244f31e56b93c7f0e9487056d6b75d13951618..8647fcc5ca6c5d5fad0f2b56f8865b8dcee876be 100644
(file)
--- 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);
}
}