From: Christopher Brannon Date: Wed, 11 Sep 2013 17:05:27 +0000 (-0700) Subject: staging: speakup: kobjects.c: Use correct values when changing voice. X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~705 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faf487b62059cd837c393dd42b30996da49fc157;p=pandora-kernel.git staging: speakup: kobjects.c: Use correct values when changing voice. When a new voice is selected, we set volume and pitch appropriate for the voice. We need to use the numeric index corresponding to the voice when indexing into the volume and pitch tables, rather than the raw user input that was used to select the voice. Note that using the raw input can also lead to an invalid memory read in the case of invalid or malicious user input. Signed-off-by: Christopher Brannon Acked-by: Samuel Thibault Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed