[PATCH] base/class.c: prevent ooops due to insert/remove race (v2)

2007-11-29 Thread Mark Lord
Greg KH wrote: On Wed, Nov 28, 2007 at 11:00:36PM -0500, Mark Lord wrote: While doing insert/remove (quickly) tests on USB, I managed to trigger an Oops on 2.6.23.1 on the call to strlen() in make_class_name(). This patch prevents this oops. There is still the larger problem of the overall

[PATCH] base/class.c: prevent ooops due to insert/remove race (v2)

2007-11-29 Thread Mark Lord
Greg KH wrote: On Wed, Nov 28, 2007 at 11:00:36PM -0500, Mark Lord wrote: While doing insert/remove (quickly) tests on USB, I managed to trigger an Oops on 2.6.23.1 on the call to strlen() in make_class_name(). This patch prevents this oops. There is still the larger problem of the overall