[IRDA]: Race between open and disconnect in irda-usb.
authorOliver Neukum <oneukum@suse.de>
Sun, 16 Dec 2007 22:07:36 +0000 (14:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2007 22:07:36 +0000 (14:07 -0800)
commit497ba7f4c8113ed699a4fd793d1437f0c8f2da5e
treeef639d3dc59eb8c7e18a465d6e50b80841767486
parentef5d4cf2f9aae4e09883d2d664e367a16b47d857
[IRDA]: Race between open and disconnect in irda-usb.

It seems to me that irda_usb_net_open() must set self->netopen
under spinlock or disconnect() may fail to kill all URBs, if it is called
while an interface is opened.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/irda-usb.c