android_kernel_xiaomi_sm8350/drivers/video/via
Julia Lawall 0f05058531 drivers/video/via/viafbdev.c: correct code taking the size of a pointer
sizeof(viafb_gamma_table) is just the size of the pointer.  This is changed
to the size used when calling kmalloc to initialize the pointer.

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression *x;
expression f;
type T;
@@

*f(...,(T)x,...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-17 15:45:30 -08:00
..
accel.c
accel.h
chip.h
debug.h
dvi.c
dvi.h
global.c
global.h
hw.c
hw.h
iface.c
iface.h
ioctl.c
ioctl.h
lcd.c viafb: cosmetic cleanup of function integrated_lvds_enable() 2009-12-16 07:20:05 -08:00
lcd.h
lcdtbl.h
Makefile
share.h
tbl1636.c
tbl1636.h
tblDPASetting.c
tblDPASetting.h
via_i2c.c
via_i2c.h
via_utility.c
via_utility.h
viafbdev.c drivers/video/via/viafbdev.c: correct code taking the size of a pointer 2009-12-17 15:45:30 -08:00
viafbdev.h
viamode.c
viamode.h
vt1636.c
vt1636.h