Skip to content
Commit 9d031d94 authored by Shahar Lev's avatar Shahar Lev Committed by Greg Kroah-Hartman
Browse files

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: default avatarShahar Lev <shahar@wizery.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bb2b43fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment