]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/i915/gvt: use pfn_valid for better checking
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Wed, 1 Mar 2017 06:34:52 +0000 (14:34 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 1 Mar 2017 07:59:36 +0000 (15:59 +0800)
commitb6b6fbc8310e1b12b05717da9df6953b138f812b
tree1d9e899529710989c79f0ec3dfc2917b9f25d2cc
parent858b0f571d30916bd69c45922045f24f26d6bfc9
drm/i915/gvt: use pfn_valid for better checking

Before get the page from pfn, use pfn_valid to check if pfn
is able to translate to page structure.

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