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