diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-10-24 14:15:23 +0300 |
|---|---|---|
| committer | Louis Chauvet <louis.chauvet@bootlin.com> | 2025-11-04 11:46:03 +0100 |
| commit | f9e46acc172138a472ffb3bf0270a0b156a77411 (patch) | |
| tree | 07b01dffdf82ff5c6add50fb9f1fa737b76850aa /tools/lib/python/kdoc/kdoc_re.py | |
| parent | 71829d7f2f702148a238672785614e1a765fcece (diff) | |
drm/vkms: Fix use after frees on error paths
These error paths free a pointer and then dereference it on the next line
to get the error code. Save the error code first and then free the
memory.
Fixes: 3e4d5b30d2b2 ("drm/vkms: Allow to configure multiple CRTCs via configfs")
Fixes: 2f1734ba271b ("drm/vkms: Allow to configure multiple planes via configfs")
Fixes: 67d8cf92e13e ("drm/vkms: Allow to configure multiple encoders via configfs")
Fixes: 272acbca96a3 ("drm/vkms: Allow to configure multiple connectors via configfs")
Fixes: 13fc9b9745cc ("drm/vkms: Add and remove VKMS instances via configfs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: José Expósito <jose.exposito89@gmail.com>
Link: https://lore.kernel.org/r/aPtfy2jCI_kb3Df7@stanley.mountain
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
