drm/i915/gvt: return error code if dma map iova failed
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Tue, 14 Feb 2017 09:15:54 +0000 (17:15 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Feb 2017 09:35:39 +0000 (17:35 +0800)
commit4a0b3444da3ce1090d0f894f4e343756a94ab8c3
tree7f8a303902da4c70155005da454dd7cb66629444
parentbc6a1c85795256cd7b44bc1dd264fe3144b8b6f8
drm/i915/gvt: return error code if dma map iova failed

When doing dma map failed for a pfn, kvmgt should unpin the
pfn and return error code to device module driver

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Cc: xinda.zhao@intel.com
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c