summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2023-05-05 01:41:55 +0300
committerWei Liu <wei.liu@kernel.org>2023-05-08 20:37:20 +0300
commitec97e112985c2581ee61854a4b74f080f6cdfc2c (patch)
treee74327c90dfdcd86f257d9dc6efa6838e6e674c6 /scripts/gdb/linux/utils.py
parentcb6aeeb69af06b09e687fbef4da36a81c36b4994 (diff)
downloadlinux-ec97e112985c2581ee61854a4b74f080f6cdfc2c.tar.xz
Drivers: hv: vmbus: Call hv_synic_free() if hv_synic_alloc() fails
Commit 572086325ce9 ("Drivers: hv: vmbus: Cleanup synic memory free path") says "Any memory allocations that succeeded will be freed when the caller cleans up by calling hv_synic_free()", but if the get_zeroed_page() in hv_synic_alloc() fails, currently hv_synic_free() is not really called in vmbus_bus_init(), consequently there will be a memory leak, e.g. hv_context.hv_numa_map is not freed in the error path. Fix this by updating the goto labels. Cc: stable@kernel.org Signed-off-by: Dexuan Cui <decui@microsoft.com> Fixes: 4df4cb9e99f8 ("x86/hyperv: Initialize clockevents earlier in CPU onlining") Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20230504224155.10484-1-decui@microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions