]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: gdm724x: Correction of variable usage after applying ALIGN()
authorSławomir Demeszko <s.demeszko@wireless-instruments.com>
Tue, 5 May 2015 15:49:54 +0000 (17:49 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:13 +0000 (13:42 -0400)
commit87529c630bb8a14ac0110cd4f9b9ed2f76909927
tree5ce4d1d1fed9696a74fecaa3451cebaa68a986ed
parentcbed10970409643e38b6d0e52de3758629f6c2e1
staging: gdm724x: Correction of variable usage after applying ALIGN()

[ Upstream commit 892c89d5d7ffd1bb794fe54d86c0eef18d215fab ]

Fix regression introduced by commit <29ef8a53542a>. After it writing
AT commands to /dev/GCT-ATM0 is unsuccessful (no echo, no response)
and dmesg show "gdmtty: invalid payload : 1 16 f011".

Before that commit value of dummy_cnt was only a padding size. After using
ALIGN() this value is increased by its first argument. So the following
usage of this variable needs correction.

Signed-off-by: Sławomir Demeszko <s.demeszko@wireless-instruments.com>
Cc: stable <stable@vger.kernel.org> # 3.14+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/staging/gdm724x/gdm_mux.c