aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorHaoxiang Li <[email protected]>2025-03-10 08:46:57 +0000
committerGreg Kroah-Hartman <[email protected]>2025-04-15 16:21:39 +0000
commit7c7f1bfdb2249f854a736d9b79778c7e5a29a150 (patch)
tree84680ae9cf1671769ff6540b91c1e925c8419fa2 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentmisc: microchip: pci1xxxx: Fix incorrect IRQ status handling during ack (diff)
downloadkernel-7c7f1bfdb2249f854a736d9b79778c7e5a29a150.tar.gz
kernel-7c7f1bfdb2249f854a736d9b79778c7e5a29a150.zip
mcb: fix a double free bug in chameleon_parse_gdd()
In chameleon_parse_gdd(), if mcb_device_register() fails, 'mdev' would be released in mcb_device_register() via put_device(). Thus, goto 'err' label and free 'mdev' again causes a double free. Just return if mcb_device_register() fails. Fixes: 3764e82e5150 ("drivers: Introduce MEN Chameleon Bus") Cc: stable <[email protected]> Signed-off-by: Haoxiang Li <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Link: https://lore.kernel.org/r/6201d09e2975ae5789879f79a6de4c38de9edd4a.1741596225.git.jth@kernel.org Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions