Re: [PATCH] vme: add missing put_device() after device_register() fails

2013-02-25 Thread Martyn Welch
On 13/02/13 18:47, Emilio G. Cota wrote: > From: "Emilio G. Cota" > > 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 > --- > drivers/vme/vme.c |1 + > 1 file c

[PATCH] vme: add missing put_device() after device_register() fails

2013-02-13 Thread Emilio G. Cota
From: "Emilio G. Cota" 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 --- drivers/vme/vme.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vme/vme.c b/driv