]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c69e1d518685cb1d80c03184492b9c41c8163df
tree1f9ee5f3da100404be153f6d2a563b682d3f2ecc
parentb11d45655e5ecdda48e35176edf80be848fd34f5
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