linux_dsm_epyc7002/drivers/gpu/vga
Dmitry Vyukov 49521b13cb drivers/gpu/vga: allocate vga_arb_write() buffer on stack
Size of kmalloc() in vga_arb_write() is controlled by user.
Too large kmalloc() size triggers WARNING message on console.
Allocate the buffer on stack to avoid the WARNING.
The string must be small (e.g "target PCI:domain:bus:dev.fn").

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: dri-devel@lists.freedesktop.org
Cc: syzkaller@googlegroups.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476451342-146510-1-git-send-email-dvyukov@google.com
2016-10-17 08:21:14 +02:00
..
Kconfig vga: compile fix, disable vga for s390 2012-11-30 17:47:28 +01:00
Makefile
vga_switcheroo.c vga_switcheroo: Sphinxify docs 2016-07-12 16:14:36 +02:00
vgaarb.c drivers/gpu/vga: allocate vga_arb_write() buffer on stack 2016-10-17 08:21:14 +02:00