vme: add missing put_device() after device_register() fails
authorEmilio G. Cota <cota@braap.org>
Wed, 13 Feb 2013 18:47:54 +0000 (13:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 17:24:14 +0000 (09:24 -0800)
commitdef1820d25fa93cf5fca10bf45f22cdb11be41f2
treee4e6dcea68b002815b34a1c17b55df59937fd60f
parent40262275f0b1bd2f0cbf9453c89c8a16025932ef
vme: add missing put_device() after device_register() fails

put_device() must be called after device_register() fails,
since device_register() always initializes the refcount
on the device structure.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vme/vme.c
This page took 0.027123 seconds and 5 git commands to generate.