drm/i915/gvt: i915_gem_object_create() returns an error pointer
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Oct 2016 10:11:38 +0000 (11:11 +0100)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:18:39 +0000 (17:18 +0800)
commit894cf7d156346986946cc573dc8c251804dc8321
treee2196596458114532419b302d51bda4843a9c3d4
parent75ea10da063f96d81828316cc25a896ae523c826
drm/i915/gvt: i915_gem_object_create() returns an error pointer

On failure from i915_gem_object_create(), we need to check for an error
pointer not NULL.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c