kernel-ark/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 viafb: choose acceleration engine for VX855 2009-09-23 07:39:53 -07:00
accel.h viafb: hardware acceleration initialization cleanup 2009-09-23 07:39:53 -07:00
chip.h viafb: add support for the VX855 chipset 2009-09-23 07:39:53 -07:00
debug.h
dvi.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
dvi.h
global.c viafb: hardware acceleration initialization cleanup 2009-09-23 07:39:53 -07:00
global.h viafb: cleanup viafb_cursor 2009-09-23 07:39:53 -07:00
hw.c viafb: make viafb a first-class citizen using pci_driver 2009-09-23 07:39:53 -07:00
hw.h viafb: make viafb a first-class citizen using pci_driver 2009-09-23 07:39:53 -07:00
iface.c
iface.h
ioctl.c
ioctl.h viafb: remove unused video device stuff 2009-09-23 07:39:52 -07:00
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 viafb: add support for the VX855 chipset 2009-09-23 07:39:53 -07:00
tbl1636.c
tbl1636.h
tblDPASetting.c
tblDPASetting.h
via_i2c.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
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 viafb: hardware acceleration initialization cleanup 2009-09-23 07:39:53 -07:00
viamode.c viafb: add support for the VX855 chipset 2009-09-23 07:39:53 -07:00
viamode.h viafb: add support for the VX855 chipset 2009-09-23 07:39:53 -07:00
vt1636.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
vt1636.h