diff options
author | Dave Airlie <airlied@redhat.com> | 2019-03-29 03:38:25 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-03-29 03:45:11 +0300 |
commit | 0271ab11790cd5ab8ec38e0e669e13c1009f271a (patch) | |
tree | 955618eba7e4ca7851c72fc09d20364f55ec7a24 /drivers/gpu/drm/i915/gvt/cmd_parser.c | |
parent | ee41c2db09f7065fc56c3b20b3f010d9f2d46280 (diff) | |
parent | 26cdaac4793c49357d2c731f2190632cefb7efb1 (diff) | |
download | linux-0271ab11790cd5ab8ec38e0e669e13c1009f271a.tar.xz |
Merge tag 'drm-intel-fixes-2019-03-28' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
drm/i915 fixes for v5.2-rc3:
- fix mmap range checks
- fix gvt ppgtt mm LRU list access races
- fix selftest error pointer check
- fix a macro definition (pre-emptive for potential further backports)
- fix one AML SKU ULX status
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/87sgv6ao7a.fsf@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/cmd_parser.c')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c index 35b4ec3f7618..3592d04c33b2 100644 --- a/drivers/gpu/drm/i915/gvt/cmd_parser.c +++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c @@ -1441,7 +1441,7 @@ static inline int cmd_address_audit(struct parser_exec_state *s, } if (index_mode) { - if (guest_gma >= I915_GTT_PAGE_SIZE / sizeof(u64)) { + if (guest_gma >= I915_GTT_PAGE_SIZE) { ret = -EFAULT; goto err; } |