Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <federico.vaga@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 150a8dcf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}
}