aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorSinclair Yeh <syeh@vmware.com>2016-04-21 11:29:31 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-07 18:14:36 -0700
commit55d851a914b51e79b33e52dabef18fe22ea80a46 (patch)
treed68843307da9bdc439b14e98fc1af57487080449 /drivers/gpu/drm/amd/amdgpu
parentc170833402b26fcbaa783bb044b11398724bd388 (diff)
drm/vmwgfx: Fix order of operation
commit 7851496a32319237456919575e5f4ba62f74cc7d upstream. mode->hdisplay * (var->bits_per_pixel + 7) gets evaluated before the division, potentially making the pitch larger than it should be. Since the original intention is to do a div-round-up, just use the macro instead. Signed-off-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions