Commit 75e44803 authored by Federico Vaga's avatar Federico Vaga Committed by David S. Miller
Browse files

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: default avatarFederico Vaga <>
Signed-off-by: default avatarDavid S. Miller <>
parent 150a8dcf
......@@ -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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment