Hi!

I'm trying to solve races in usb-storage.

It does something like

        result = usb_bulk_msg(us->pusb_dev, pipe, buf, length, &partial, HZ*5);

And now, if device is removed, just before call, I pass NULL and usb
layer explodes.

I can not protect myself with spinlock_irqsave(), because usb_bulk_msg
may block. I might not set us->pusb_dev to NULL in case of removal,
but that's probably wrong.

How should I use usb_bulk_msg?
                                                                Pavel

-- 
I'm [EMAIL PROTECTED] "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents me at [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to