drm/ttm: fix eviction valuable range check.
authorDave Airlie <airlied@redhat.com>
Mon, 19 Oct 2020 22:22:53 +0000 (08:22 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:07:04 +0000 (11:07 +0100)
commit352dd1b0364eeb424cf12e9f42852c9a67881a08
treed6d4d226b2c81e0d5889d1aaf74d5f64e0eeb7eb
parented153317028169264c7359d21c128ecf37e3d7d8
drm/ttm: fix eviction valuable range check.

commit fea456d82c19d201c21313864105876deabe148b upstream.

This was adding size to start, but pfn and start are in pages,
so it should be using num_pages.

Not sure this fixes anything in the real world, just noticed it
during refactoring.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20201019222257.1684769-2-airlied@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo.c