USB: ftdi_sio: Fix locking for change_speed() function
commit9c67d28e4e7683b4f667fa4c7b6f9aee92b44b5c
authorAlessio Igor Bogani <abogani@texware.it>
Sat, 13 Mar 2010 17:35:14 +0000 (13 18:35 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:24:21 +0000 (19 07:24 -0700)
tree3ebe03430385bbcab1ecaa8f53cc0037386fa44e
parent11b10d999469dc0514447a15e88c7ef14ec0761d
USB: ftdi_sio: Fix locking for change_speed() function

The change_speed() function should be serialized against multiple calls.
Use the cfg_lock mutex to do this.

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c