mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 16:43:08 +00:00
e687d691cb
The function viafb_cursor() uses 2 stack-variables of CURSOR_SIZE bits; CURSOR_SIZE is defined as (8 * 1024). Using up twice 1k on stack is too much for 4k-stack (though it works with 8k-stacks). Make those two variables kzalloc'ed to preserve stack space. Also merge the whole lot of local struct's in viafb_ioctl into a union so the stack usage gets minimized here as well. (struct's are only accessed in their indicidual IOCTL case) This second part is only compile-tested as I know of no userspace app using the IOCTLs. Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org> Cc: <JosephChan@via.com.tw> Cc: Krzysztof Helt <krzysztof.h1@poczta.fm> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
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 | ||
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 | ||
viafbdev.h | ||
viamode.c | ||
viamode.h | ||
vt1636.c | ||
vt1636.h |