Skip to content

Commit

Permalink
USB: fix usbatm tiny race
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Oct 17, 2006
1 parent 3ccf25c commit 521b600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/atm/usbatm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 521b600

Please sign in to comment.