WSL2-Linux-Kernel/drivers/gpu/drm/selftests
José Expósito 0728ccb664 drm/selftests/test-drm_dp_mst_helper: Fix memory leak in sideband_msg_req_encode_decode
[ Upstream commit ba3a5ddcf1 ]

Avoid leaking the "out" variable if it is not possible to allocate
the "txmsg" variable.

Fixes: 09234b88ef ("drm/selftests/test-drm_dp_mst_helper: Move 'sideband_msg_req_encode_decode' onto the heap")
Addresses-Coverity-ID: 1475685 ("Resource leak")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220108165812.46797-1-jose.exposito89@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:24 +02:00
..
Makefile drm/selftests: Add drm_rect selftests 2019-11-28 13:33:43 +02:00
drm_cmdline_selftests.h drm/modes: Make sure to parse valid rotation value from cmdline 2020-02-12 18:32:54 +01:00
drm_mm_selftests.h drm/mm: add ig_frag selftest 2020-06-08 15:14:16 +02:00
drm_modeset_selftests.h drm/selftests: Add drm_rect selftests 2019-11-28 13:33:43 +02:00
drm_selftest.c
drm_selftest.h
test-drm_cmdline_parser.c drm/modes: Make sure to parse valid rotation value from cmdline 2020-02-12 18:32:54 +01:00
test-drm_damage_helper.c drm/i915/selftests: Properly reset mock object propers for each test 2021-10-22 11:09:45 +02:00
test-drm_dp_mst_helper.c drm/selftests/test-drm_dp_mst_helper: Fix memory leak in sideband_msg_req_encode_decode 2022-04-08 14:23:24 +02:00
test-drm_format.c drm/selftests: Add tests for drm_format_info* helpers 2018-11-02 09:57:58 +00:00
test-drm_framebuffer.c drm: allow drm_atomic_print_state() to accept any drm_printer 2021-06-23 07:32:13 -07:00
test-drm_mm.c drm/selftests/test-drm_mm: Mark 'hole_end' as always_unused 2020-11-17 20:05:05 +01:00
test-drm_modeset_common.c drm/selftest: Refactor test-drm_plane_helper 2018-10-22 10:30:50 +01:00
test-drm_modeset_common.h drm/selftests: Add drm_rect selftests 2019-11-28 13:33:43 +02:00
test-drm_plane_helper.c drm/selftest: Refactor test-drm_plane_helper 2018-10-22 10:30:50 +01:00
test-drm_rect.c drm/selftests: Add drm_rect selftests 2019-11-28 13:33:43 +02:00