Thomas Zimmermann bed2dd8421 drm/ttm: Quick-test mmap offset in ttm_bo_mmap()
A BO's address has to be at least the minimum offset. Sharing this
test in ttm_bo_mmap() removes code from drivers. A full buffer-address
validation is still done within drm_vma_offset_lockup_locked().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-03-19 15:03:53 -05:00
..
2019-01-14 10:58:37 +01:00
2018-06-12 16:19:22 -07:00
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2015-12-02 12:45:54 -05:00
2018-06-12 16:19:22 -07:00
2017-11-15 20:42:10 -08:00
2018-06-12 16:19:22 -07:00
2015-10-21 11:35:11 -04:00
2015-11-30 14:44:34 -05:00
2019-01-29 15:45:21 +01:00
2015-12-02 12:45:54 -05:00
2016-03-16 18:08:06 -04:00
2017-05-18 17:22:39 +02:00
2016-03-16 18:08:06 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00