drm/i915/gvt: Add missing breaks in switch statement
authorColin Ian King <colin.king@canonical.com>
Mon, 4 Dec 2017 16:48:18 +0000 (16:48 +0000)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 5 Dec 2017 03:43:46 +0000 (11:43 +0800)
commitf745e9cc7e40c4570ab5e8d5ef32bfaa6e8ced46
tree7a880d5a47e327e20e5c6d78873860e10db20077
parent1603660b3342269c95fcafee1945790342a8c28e
drm/i915/gvt: Add missing breaks in switch statement

The switch statement is missing breaks for the cases of
GVT_FAILSAFE_INSUFFICIENT_RESOURCE and GVT_FAILSAFE_GUEST_ERR. Add them
in.

Detected by CoverityScan, CID#1462416 ("Missing break in switch")

Fixes: e011c6ce2b4f ("drm/i915/gvt: Add VM healthy check for workload_thread")
Fixes: a33fc7a0482a ("drm/i915/gvt: enter failsafe mode when guest requires more resources")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c