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)
commitf96f7f7f39af53274d98aa9c29d6fa4d122218a4
tree072676b629e4ac854d41562e09c5667d3edf1c1c
parent5425e03f97d1e5847372aae0b895d8d1c9bf2741
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