]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: make sure format string cannot leak in
authorKees Cook <keescook@chromium.org>
Thu, 11 Sep 2014 20:53:54 +0000 (13:53 -0700)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 01:15:01 +0000 (11:15 +1000)
commit81c6c3ab8bb884025ebb795a8a129adf0482f398
treed8c0a8c7ae5a783b0a484a9700c30604ec65c041
parent764326d5f467448fa2869dd0c87d36c359ed9968
drm/ttm: make sure format string cannot leak in

While zone->name is currently hard coded, the call to kobject_init_and_add()
should follow the more defensive argument list usage (as already done in
other places in ttm_memory.c) where "%s" is used instead of directly passing
in a variable as a format string.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_memory.c