]> git.baikalelectronics.ru Git - kernel.git/commit
n_gsm.c: add tx_lock in gsm_send
authorxiaojin <jin.xiao@intel.com>
Wed, 19 Dec 2012 03:53:43 +0000 (11:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 05:54:41 +0000 (21:54 -0800)
commita5e0619933298889b00fc7a4530eb7b10f85434f
tree072676b629e4ac854d41562e09c5667d3edf1c1c
parent53bf17beaf33b6b1cb198559c8e3a25253cab3eb
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.

Signed-off-by: xiaojin <jin.xiao@intel.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c