]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 13:23:02 +0000 (15:23 +0200)
commita102275d2cf967cf292c2dfc9b483adc5a1e0d5b
treee005acc8f0235b075742812d6dc67346710f4786
parent56fa7fe893b28697889386dcb032a1442bd736ec
staging: gdm724x: Correction of variable usage after applying ALIGN()

Fix regression introduced by commit <9f661b3b34f2>. 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>
drivers/staging/gdm724x/gdm_mux.c