提交 916a491d 编写于 作者: K Kees Cook 提交者: Jani Nikula

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: NKees Cook <keescook@chromium.org>
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170411045630.GA6612@beast
上级 939cf46c
......@@ -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);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册