]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: fix usbatm tiny race
authorAndrew Morton <akpm@osdl.org>
Tue, 10 Oct 2006 21:42:46 +0000 (14:42 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Oct 2006 21:46:33 +0000 (14:46 -0700)
ia64:

drivers/usb/atm/usbatm.c: In function `usbatm_do_heavy_init':
drivers/usb/atm/usbatm.c:1004: warning: implicit declaration of function `get_current'
drivers/usb/atm/usbatm.c:1004: error: invalid type argument of `->'

Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/usbatm.c

index ab091fa4c86b475de4d50f9851ebe83f7d5ce2cb..ec63b0ee07437312f8c9abc6a4f3dfbe057d7d70 100644 (file)
@@ -1001,7 +1001,7 @@ static int usbatm_do_heavy_init(void *arg)
 
        daemonize(instance->driver->driver_name);
        allow_signal(SIGTERM);
-       instance->thread_pid = get_current()->pid;
+       instance->thread_pid = current->pid;
 
        complete(&instance->thread_started);