drm/i915/gvt: Fix error handling in ppgtt_populate_spt_by_guest_entry
authorChangbin Du <changbin.du@intel.com>
Tue, 15 May 2018 02:35:45 +0000 (10:35 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jul 2018 02:35:14 +0000 (10:35 +0800)
commit80e76ea631de6e14c2c436b278ee0c6871227606
treeb5434a89b6af363faee01b9601089d6230fa6239
parent54c81653bd67ce2a11fa08295d9148385ea29603
drm/i915/gvt: Fix error handling in ppgtt_populate_spt_by_guest_entry

Don't forget to free allocated spt if shadowing failed.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c