diff options
| author | Dan Carpenter <[email protected]> | 2019-03-22 06:41:25 +0000 |
|---|---|---|
| committer | Eric Anholt <[email protected]> | 2019-04-01 17:44:34 +0000 |
| commit | 3a3fe6e766630aacf8cc212cceb1d57d7b346463 (patch) | |
| tree | 7d2c934ec39fc4d8ea86b7feb470af71b429374b /drivers/gpu/drm/lima/lima_sched.h | |
| parent | drm/vc4: Use drm_print_regset32() for our debug register dumping. (diff) | |
| download | kernel-3a3fe6e766630aacf8cc212cceb1d57d7b346463.tar.gz kernel-3a3fe6e766630aacf8cc212cceb1d57d7b346463.zip | |
drm: shmem: Off by one in drm_gem_shmem_fault()
The shmem->pages[] array has "num_pages" elements so the > should be >=
to prevent reading beyond the end of the array. The shmem->pages[]
array is allocated in drm_gem_shmem_prime_import_sg_table().
Fixes: 2194a63a818d ("drm: Add library for shmem backed GEM objects")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/20190322064125.GA12551@kadam
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.h')
0 files changed, 0 insertions, 0 deletions
