linux/drivers/gpu/drm/rockchip
Nicolas Iooss 399368aab3 drm: make drm_dev_set_unique() not use a format string
drm_dev_set_unique() uses a format string to define the unique name of a
device.  This feature is not used as currently all the calls to this
function either use "%s" as a format string or directly use
dev_name().

Even though this second kind of call does not introduce security
problems, because there cannot be "%" characters in dev_name() results,
gcc issues a warning when building with -Wformat-security flag
("warning: format string is not a string literal (potentially
insecure)").  This warning is useful to find real bugs like the one
fixed by commit 3958b79266 ("configfs: fix kernel infoleak through
user-controlled format string").  False positives which do not bring
an extra value make the work of finding real bugs harder.

Therefore remove the format-string feature from drm_dev_set_unique().

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1449829228-4425-1-git-send-email-nicolas.iooss_linux@m4x.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-12-15 13:52:38 +01:00
..
dw_hdmi-rockchip.c drm/rockchip: Constify function pointer structs 2015-12-15 13:48:19 +01:00
Kconfig drm: rockchip: add reset controller dependency 2015-01-31 10:11:48 +10:00
Makefile
rockchip_drm_drv.c drm: make drm_dev_set_unique() not use a format string 2015-12-15 13:52:38 +01:00
rockchip_drm_drv.h
rockchip_drm_fb.c drm/rockchip: Constify function pointer structs 2015-12-15 13:48:19 +01:00
rockchip_drm_fb.h drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
rockchip_drm_fbdev.c drm/rockchip: Use new drm_fb_helper functions 2015-08-06 14:12:56 +02:00
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/rockchip: unset pgoff when mmap'ing gems 2015-12-02 09:13:17 +08:00
rockchip_drm_gem.h drm/rockchip: Only alloc a kmap for fbdev gem object 2015-03-16 10:07:12 +08:00
rockchip_drm_vop.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
rockchip_drm_vop.h drm/rockchip: vop: support plane scale 2015-08-26 14:16:26 +08:00