usbatm: fix tiny race
authorDuncan Sands <baldrick@free.fr>
Thu, 5 Oct 2006 07:56:44 +0000 (09:56 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Oct 2006 21:46:31 +0000 (14:46 -0700)
commitccf40d62c70128990cf2e8775853cc3287cd7ce3
tree1f9ee5f3da100404be153f6d2a563b682d3f2ecc
parente4a20daa7b44ab9805979eb716f6bb7532bc67b9
usbatm: fix tiny race

If usbatm_do_heavy_init finishes before usbatm_heavy_init
writes the pid, the disconnect method could shoot down the
wrong process if the pid has been recycled.

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