drm/i915/kvmgt: fix an error code in gvt_dma_map_page()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 Jul 2018 08:19:21 +0000 (11:19 +0300)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 7 Aug 2018 02:42:54 +0000 (10:42 +0800)
commit13bdff337e4ea467a547df771a825dd9b4ed6dd9
treed0ae93d649af304b4fd79ed23e27dd0d591d1ed7
parent3237c0dbe21f8d2ca2feaa3891aff3619873cd30
drm/i915/kvmgt: fix an error code in gvt_dma_map_page()

The dma_mapping_error() returns true on error but we want to return
-ENOMEM here.

Fixes: 79e542f5af79 ("drm/i915/kvmgt: Support setting dma map for huge pages")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c