Re: [PATCH] n_gsm.c: add tx_lock in gsm_send

From: Alan Cox
Date: Thu Dec 20 2012 - 06:38:46 EST

On Thu, 20 Dec 2012 08:38:40 +0800
Xiao Jin <jin.xiao@xxxxxxxxx> wrote:

> From: xiaojin <jin.xiao@xxxxxxxxx>
> Date: Wed, 19 Dec 2012 11:53:43 +0800
> Subject: [PATCH] n_gsm.c: add tx_lock in gsm_send
> All the call to gsm->output should be in the tx_lock,
> that could avoid potential race from MUX level. But
> we have no tx_lock in gsm_send.
> This patch is to add tx_lock in gsm_send.

gsm->output calls the transmit method of the underlying tty driver. We
can't do that with interrupts off as some drivers expect to be able to
sleep in their output paths.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at