From: Federico Vaga Date: Mon, 15 Apr 2013 04:42:52 +0000 (+0000) Subject: sparc/kernel/vio.c: add put_device() after device_find_child() X-Git-Tag: upstream/snapshot3+hdmi~5193^2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75e448036bece2f7dfa96ec4a68410c68208a951;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/vio.c b/arch/sparc/kernel/vio.c index 3e244f3..8647fcc 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); } }