Re: [PATCH] staging: comedi: register sysfs device attributes withdriver core

From: Greg KH
Date: Mon May 14 2012 - 16:00:52 EST


On Thu, May 10, 2012 at 06:05:28PM -0700, H Hartley Sweeten wrote:
> Currently the sysfs device attributes are created by the comedi
> core after each comedi device is created. This can lead to a race
> condition where userspace gets an add event before the files are
> created.
>
> Register the device attributes with the comedi class so that the
> driver core handles creating them and we avoid the race.

Nice job, thanks for making this change.

greg k-h
--
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/