alistair23-linux/drivers/misc/ti-st
channing 25c22d5bea misc: st_core: Error triggered by convert "char" to "int"
When st driver decodes protocol index received from raw data,
it does a value convert from "char" to "int". Because it's sign
extension from bit8 to bit32, the "int" value maybe minus, in
another word, the protocol index might be minus, but driver doesn't
filter such case and may continue access memory pointed by this
minus index.

This patch is to change the variable type of index from "int"
to "unsigned char", so that it avoids do such kind of type
conversion.

cc: liu chuansheng <chuansheng.liu@intel.com>
Signed-off-by: channing <chao.bi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-17 10:19:42 -08:00
..
Kconfig misc: fix ti-st build issues 2011-04-29 14:11:03 -07:00
Makefile
st_core.c misc: st_core: Error triggered by convert "char" to "int" 2013-01-17 10:19:42 -08:00
st_kim.c misc/st_kim: Free resources in the error path of probe() 2012-11-26 16:16:35 -08:00
st_ll.c drivers/misc/ti-st: check chip_awake NULL check 2012-08-16 10:11:45 -07:00