diff options
author | Xiong Zhang <xiong.y.zhang@intel.com> | 2019-04-10 06:16:33 +0200 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-04-11 05:09:53 +0200 |
commit | cd7879f79f83aec4bb13f0f823f323911dc5397b (patch) | |
tree | 84dfcd5181d7b3b4f082840de5032e718d23f1c8 /kernel/acct.c | |
parent | drm/i915/gvt: Prevent use-after-free in ppgtt_free_all_spt() (diff) | |
download | linux-cd7879f79f83aec4bb13f0f823f323911dc5397b.tar.xz linux-cd7879f79f83aec4bb13f0f823f323911dc5397b.zip |
drm/i915/gvt: Roundup fb->height into tile's height at calucation fb->size
When fb is tiled and fb->height isn't the multiple of tile's height,
the format fb->size = fb->stride * fb->height, will get a smaller size
than the actual size. As the memory height of tiled fb should be multiple
of tile's height.
Fixes: 7f1a93b1f1d1 ("drm/i915/gvt: Correct the calculation of plane size")
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'kernel/acct.c')
0 files changed, 0 insertions, 0 deletions