drivers:misc: ti-st: fix skipping of change remote baud
authorShahar Lev <shahar@wizery.com>
Mon, 23 May 2011 08:36:11 +0000 (11:36 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 17:01:18 +0000 (10:01 -0700)
commit9d031d94da453077bbc6108b7822fc751ac85299
tree35c58ae8741e5cb79d422b05eb9ce14dfeac3568
parentbb2b43fefab723f4a0760146e7bed59d41a50e53
drivers:misc: ti-st: fix skipping of change remote baud

Before the incrementing of ptr in skip_change_remote_baud,
it points to cur_action, but the increment is done by
the size of nxt_action instead. This could cause ptr
to not point to a bts_action structure, which is
harmful for the increment of ptr done in download_firmware.
Therefore, the skipping is first done for cur_action.

Signed-off-by: Shahar Lev <shahar@wizery.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/ti-st/st_kim.c