patch-2.4.13 linux/drivers/usb/hiddev.c

Next file: linux/drivers/usb/inode.c
Previous file: linux/drivers/usb/devices.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/usb/hiddev.c linux/drivers/usb/hiddev.c
@@ -264,7 +264,7 @@
 	if (list->head == list->tail) {
 
 		add_wait_queue(&list->hiddev->wait, &wait);
-		current->state = TASK_INTERRUPTIBLE;
+		set_current_state(TASK_INTERRUPTIBLE);
 
 		while (list->head == list->tail) {
 
@@ -284,7 +284,7 @@
 			schedule();
 		}
 
-		current->state = TASK_RUNNING;
+		set_current_state(TASK_RUNNING);
 		remove_wait_queue(&list->hiddev->wait, &wait);
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)