Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 916a491d authored by Kees Cook's avatar Kees Cook Committed by Jani Nikula
Browse files

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170411045630.GA6612@beast
parent 939cf46c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/*