Am Monday 12 January 2009 14:25:33 schrieb Denis Joseph Barrow: > Hi Oliver, > Correct me if I'm wrong but I probably am as usual but > this patch could be a lot more minimal, 70-80% of the patch seems to be > removing net_lock & serial_lock from hso_serial & hso_net > & adding lock to hso_device which to me appears to me to > have almost nothing to do with fixing the bug you found. It is necessary to lock the new flags and the lock needs to be taken for both serial and net parts, therefore the existent locking scheme has to be changed. > Admittedly seeing as the is_active flags are in the hso_device > structure it might make sense to have the lock there too > as it's common to hso_serial & hso_net. > > > You also changed is_active & usb_gone to chars rather than > leave them as u8's this is also unneccessary & even if I didnt write the > code I prefer u8's. You can change that back, although if you need flags, you shouldn't use types that indicate a specific word length. That's outright evil. > Thanks for fixing the bug, I'll do a bit more examination of > the patch before applying it, how do the rest of you feel about the patch? > I personally would accept it as is if it passes a little testing. Feel free to review and test. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html