drm/i915/gvt: Fix an error code in ppgtt_populate_spt_by_guest_entry()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 May 2019 09:22:44 +0000 (12:22 +0300)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 21 May 2019 02:58:16 +0000 (10:58 +0800)
commit591c39ffac4ab1ddf2ea6d49331cb614e0682b28
tree797f837a903efdf07d5295e13018502f58c12c50
parente175a2520c7788a323ae93f04013b8fdaa552c69
drm/i915/gvt: Fix an error code in ppgtt_populate_spt_by_guest_entry()

"ret" is uninitialized on this path but it should be -EINVAL.

Fixes: 930c8dfea4b8 ("drm/i915/gvt: Check if get_next_pt_type() always returns a valid value")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c