n_gsm.c : Prevent adaption change while receiving datas
authorVincent Pillet <vincentx.pillet@intel.com>
Thu, 7 Jun 2012 13:21:22 +0000 (15:21 +0200)
committerbuildslave <buildslave@buildbot.tl.intel.com>
Fri, 29 Jun 2012 12:46:14 +0000 (05:46 -0700)
commit4013f8899a3283335a2f58c683bba606d0bb2233
tree8c5a4ab47680d8496d83cd9e1189031c5ec0d7d3
parentae54f538ba5819aaaa68280fc084bf05914fe8ab
n_gsm.c : Prevent adaption change while receiving datas

BZ: 40341

If ioctl GSMIOC_DISABLE_NET is issued on gsmtty associated to
network interface while IP traffic is icomming, in rare case
gsm_mux_rx_netchar can use variable (mux_net) that can no more
be valid. We add a mutex to prevent that. More generally we
prevent that adaption can change while incomming data are managed.

Change-Id: I121d62ed479991c59aa95ce4b184e2c422ae21cc
Signed-off-by: Vincent Pillet <vincentx.pillet@intel.com>
drivers/tty/n_gsm.c