TTY/n_gsm: potential double lock
authorDan Carpenter <error27@gmail.com>
Tue, 25 May 2010 09:37:17 +0000 (11:37 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:37:17 +0000 (13:37 -0700)
commit328be395a396b1333b56e04571365dc614c96e46
treee4266351b4641c44f43747e776964d6321f10d3d
parente59e2bd9e85604ad601ec7dd056baffcd6ad56a0
TTY/n_gsm: potential double lock

In gsm_dlci_data_kick() we call gsm_dlci_data_sweep() with the
"gsm->tx_lock" held so we can't lock it again inside
gsm_dlci_data_sweep().  I removed that lock from and added one to
gsmld_write_wakeup() instead.  The sweep function is only called from
those two places.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/n_gsm.c