tty/n_gsm.c: get gsm->num after gsm_activate_mux
authorxinhui.pan <xinhuix.pan@intel.com>
Wed, 23 Jul 2014 06:31:09 +0000 (14:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 01:56:17 +0000 (18:56 -0700)
commit850e93eb299dfe9379609d5755068d47b03954f8
treee60431dfd9e68d893e1a64d0decb5dbcecb0ab1f
parentc2b703b807e3aba4d2b542c9096c790186a6e71f
tty/n_gsm.c: get gsm->num after gsm_activate_mux

gsm->num is the index of gsm_mux[], it's invalid before calling gsm_activate_mux.

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