[PATCH] usb/dabusb: insert set_current_state() before schedule_timeout()
After discussing this patch with Mark Hollomon, I think it is much safer / better to leave the conditional check within the while loop. This way the mutex state is as expected and maintainability is not compromised. The previous patch should not be applied. Description: Inserts appropriate set_current_state() call so that schedule_timeout() functions as expected. Signed-off-by:Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by:
Maximilian Attems <janitor@sternwelten.at> Signed-off-by:
Greg Kroah-Hartman <greg@kroah.com>
Showing
Please register or sign in to comment