drm/i915/gvt: init/destroy vgpu_idr properly
authorJike Song <jike.song@intel.com>
Fri, 6 Jan 2017 07:16:21 +0000 (15:16 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jan 2017 03:11:08 +0000 (11:11 +0800)
commit59c0573dfbd5f66e3aa54c2ce0bebcb0953d4db4
treecbaa14ab4af15643d5abd304a660c78bbb3d1193
parent440a9b9fae37dfd7e4c7d76db34fada57f9afd92
drm/i915/gvt: init/destroy vgpu_idr properly

An idr should be initialized before use and destroyed afterwards.

Signed-off-by: Jike Song <jike.song@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.c