Re: [linux-usb-devel] [patch] fix 2.4 usbdevfs race

2003-06-05 Thread Johannes Erdfelt
On Thu, Jun 05, 2003, Johannes Erdfelt <[EMAIL PROTECTED]> wrote: > Here's a patch to fix a race condition in usbdevfs. The fix is in hub.c > but the race is related to usbdevfs. > > The race goes like this: > > Process 1 (khubd) Process 2 (mount) > usb_hub_port_connect_change

[linux-usb-devel] [patch] fix 2.4 usbdevfs race

2003-06-05 Thread Johannes Erdfelt
Here's a patch to fix a race condition in usbdevfs. The fix is in hub.c but the race is related to usbdevfs. The race goes like this: Process 1 (khubd) Process 2 (mount) usb_hub_port_connect_change() hub->children[port] = dev usb_new_device()