Re: [PATCH] USB: ftdi_sio: Fix locking for change_speed() function

From: Alan Cox
Date: Mon Mar 08 2010 - 12:37:00 EST


On Mon, 8 Mar 2010 14:10:03 +0100
Alessio Igor Bogani <abogani@xxxxxxxxxx> wrote:

> The change_speed() function set the baudrate of the device: so this function
> should be serialized against multiple calls. Use the cfg_lock mutex to do this.

Should be ok anyway the set_termios callback occurs under the tty termios
lock, and will not occur in parallel with an initial open or final close.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/