commit | bed2dd84212eb0151ae3bfc39cdaa25a951749c1 | [log] [tgz] |
---|---|---|
author | Thomas Zimmermann <tzimmermann@suse.de> | Thu Feb 07 09:59:30 2019 +0100 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue Mar 19 15:03:53 2019 -0500 |
tree | da3155580e0fa7b603bb4fbdb163fcdf497f5ffd | |
parent | 7d1500f9fbfc78e6a34be3f8f4b5ba13e8227199 [diff] |
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>