2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/drivers/misc/ti-st
Dan Carpenter 63e144c9d6 ti-st: clean up data types (fix harmless memory corruption)
The big issue here is:

	of_property_read_u32(np, "flow_cntrl", (u32 *)&dt_pdata->flow_cntrl);

"->flow_cntrl" is a char so when we write a 32 bit number to it then it
corrupts past the end of the char.  It's probably hard to notice because
the struct has padding so the code works on little endian systems. But
on a big endian system the code would fail and on a 64 bit, big endian
systems then "nshutdown_gpio" and "baud_rate" would be buggy as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-02-03 15:48:51 -08:00
..
Kconfig tty: Added a CONFIG_TTY option to allow removal of TTY 2013-01-18 16:15:27 -08:00
Makefile misc: ti-st: Kconfig & Makefile for TI_ST 2010-10-06 08:27:00 -07:00
st_core.c drivers:misc:ti-st: protect against bad packets 2015-01-12 05:04:11 -08:00
st_kim.c ti-st: clean up data types (fix harmless memory corruption) 2015-02-03 15:48:51 -08:00
st_ll.c ti-st: add device tree support 2015-01-12 05:04:10 -08:00