summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_hangcheck.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-04-10 21:56:30 -0700
committerJani Nikula <jani.nikula@intel.com>2017-04-19 15:49:27 +0300
commit916a491d11a866218ad92ff4f3124baa97d68ba0 (patch)
tree761f33559752b26306b0da058c2ac174ea082e3e /drivers/gpu/drm/i915/intel_hangcheck.c
parent939cf46c3a32c969392c66a6218593a38e1c7bf1 (diff)
downloadtalos-obmc-linux-916a491d11a866218ad92ff4f3124baa97d68ba0.tar.gz
talos-obmc-linux-916a491d11a866218ad92ff4f3124baa97d68ba0.zip
drm/i915: Avoid format string expansion from engine names
While highly unlikely, this makes sure that the string built from engine names won't be processed as a format string. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170411045630.GA6612@beast
Diffstat (limited to 'drivers/gpu/drm/i915/intel_hangcheck.c')
-rw-r--r--drivers/gpu/drm/i915/intel_hangcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_hangcheck.c b/drivers/gpu/drm/i915/intel_hangcheck.c
index dce742243ba6..9b0ece427bdc 100644
--- a/drivers/gpu/drm/i915/intel_hangcheck.c
+++ b/drivers/gpu/drm/i915/intel_hangcheck.c
@@ -407,7 +407,7 @@ static void hangcheck_declare_hang(struct drm_i915_private *i915,
"%s, ", engine->name);
msg[len-2] = '\0';
- return i915_handle_error(i915, hung, msg);
+ return i915_handle_error(i915, hung, "%s", msg);
}
/*
OpenPOWER on IntegriCloud