USB: io_edgeport race condition in counters
authorOliver Neukum <oneukum@suse.de>
Thu, 15 Mar 2007 14:27:17 +0000 (15:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:36 +0000 (13:28 -0700)
commit96c706ed1c46470598d785124b2a7fb233b27dab
treee83913e0ad362043b67e163751f8a1abb0c64199
parente198a31489146bb723fef179e5d1d18c8225f246
USB: io_edgeport race condition in counters

io_edgeport is using a global variable without locking.
This is _the_ classical race condition. This patch switches to atomic_t.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/io_edgeport.c