]> git.baikalelectronics.ru Git - kernel.git/commit
drm: simpledrm: Fix use after free issues
authorColin Ian King <colin.king@canonical.com>
Wed, 12 May 2021 20:30:51 +0000 (21:30 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 13 May 2021 14:00:54 +0000 (16:00 +0200)
commit9c10a5823b979108bd77420370987ed9b3991457
treeda3997f970ac109983f5143339442d76b27e3e68
parent943471e91a0614ae0c801510140f1dea5fe17968
drm: simpledrm: Fix use after free issues

There are two occurrances where objects are being free'd via
a put call and yet they are being referenced after this. Fix these
by adding in the missing continue statement so that the put on the
end of the loop is skipped over.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Addresses-Coverity: ("Use after free")
Fixes: 674ba85dedf1 ("drm: Add simpledrm driver")
Link: https://patchwork.freedesktop.org/patch/msgid/20210512203051.299026-1-colin.king@canonical.com
drivers/gpu/drm/tiny/simpledrm.c