n_gsm: Fix length handling
authorKen Mills <ken.k.mills@intel.com>
Thu, 4 Nov 2010 15:16:42 +0000 (15:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 11 Nov 2010 19:06:09 +0000 (11:06 -0800)
commit40e3465db2cffd64e069ca82ee981025554bc159
tree4d1f8b2e9eb7a6e585c3818cafa49f5840165941
parent820e62ef3d39ba9414dd9b87dba2eedd7e403e53
n_gsm: Fix length handling

If the mux is configured with a large mru/mtu the existing code gets the
byte ordering wrong for the header.

Signed-off-by: Ken Mills <ken.k.mills@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/n_gsm.c