Skip to contentSkip to conversation

usb/tiglusb: insert set_current_state()

PATCH New Nishanth Aravamudan 1 participant 1 message Jul 27, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb/tiglusb: insert set_current_state()

Sorry about that, didn't mean to send the patch quite yet...

I would appreciate any comments from the janitors list.

Applys-to: 2.6.7

Description: Insert set_current_state() so schedule_timeout() functions as expected.

drivers/usb/misc/tiglusb.c +1 -0
@@ -115,6 +115,7 @@ tiglusb_open (struct inode *inode, struc
 			return -EBUSY;
 		}
 
+		set_current_state(TASK_INTERRUPTIBLE);
 		schedule_timeout (HZ / 2);
 
 		if (signal_pending (current)) {

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors