]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vkms: check plane_composer->map[0] before using it
authorTales Lelo da Aparecida <tales.aparecida@gmail.com>
Fri, 15 Apr 2022 11:12:59 +0000 (08:12 -0300)
committerMelissa Wen <melissa.srw@gmail.com>
Sun, 12 Jun 2022 23:14:03 +0000 (22:14 -0100)
commit8e14e279896007ee3d69209886f1ffc2218e2933
tree87d16112039b685318fb2cf91a6d9669fa38c550
parent442465da91c726c78ea3b2335584910664bfeec9
drm/vkms: check plane_composer->map[0] before using it

Fix a copypasta error. The caller of compose_plane() already checks
primary_composer->map. In contrast, plane_composer->map is never
verified here before handling.

Fixes: 8755b185c000 ("dma-buf-map: Rename to iosys-map")
Reviewed-by: André Almeida <andrealmeid@riseup.net>
Signed-off-by: Tales Lelo da Aparecida <tales.aparecida@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220415111300.61013-2-tales.aparecida@gmail.com
drivers/gpu/drm/vkms/vkms_composer.c