Re: [PATCH 04/14] memstick: core: fix device_register() errorhandling

From: James Bottomley
Date: Wed Sep 22 2010 - 12:24:08 EST


On Wed, 2010-09-22 at 09:20 -0700, Greg KH wrote:
> > What other email? ... neither you nor Kay replied after either Boaz's
> > patch or the corrected one were posted.
>
> See my other email a minute ago in response to this thread.

Can we start again? You've been replying to a patch to do a
put_device() in device_register() which everyone agrees looks wrong.

The proposal to fix all of this is to free the kobject name and NULL it
out in device_add(). That fixes all the places you and kay broke when
you added the variable length name stuff.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/