Re: [PATCH 1/4] tty: n_gsm: add some locking around gsm_mux[]
Peter Z points out that this isn't sufficient... Let me try again. regards, dan carpenter
[PATCH 1/4] tty: n_gsm: add some locking around gsm_mux[]
We should take "gsm_mux_lock" when we access gsm_mux[]. Reported-by: Sun Peng Signed-off-by: Dan Carpenter diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 3b3e1f6632d7..cc7f68814200 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -2898,18 +2898,22 @@ static int gsmtty