]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
UBUNTU: SAUCE: drm/i915/cmdparser: Use explicit goto for error paths
authorJon Bloomfield <jon.bloomfield@intel.com>
Thu, 27 Sep 2018 17:23:17 +0000 (10:23 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 6 Nov 2019 09:20:16 +0000 (10:20 +0100)
commitac5aee630121fa3971d8c85ec20b53458037869a
treeebcd5d90c9458314deba59d38556699d43199480
parent920952266608654e576f68817271474763a65307
UBUNTU: SAUCE: drm/i915/cmdparser: Use explicit goto for error paths

In the next patch we will be adding a second valid
termination condition which will require a small
amount of refactoring to share logic with the BB_END
case.

Refactor all error conditions to jump to a dedicated
exit path, with 'break' reserved only for a successful
parse.

Signed-off-by: Jon Bloomfield <jon.bloomfield@intel.com>
CVE-2019-0155

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/i915/i915_cmd_parser.c