diff options
| author | Roman Kisel <romank@linux.microsoft.com> | 2025-10-09 02:34:16 +0300 |
|---|---|---|
| committer | Wei Liu <wei.liu@kernel.org> | 2025-11-15 09:18:15 +0300 |
| commit | 510164539f16062e842a9de762616b5008616fa1 (patch) | |
| tree | 3831e7096ecd87621adcec483bdae827348a9b8e /tools/perf/scripts/python | |
| parent | 0a4534bdf29a5b7f5a355c267d28dad9c40ba252 (diff) | |
| download | linux-510164539f16062e842a9de762616b5008616fa1.tar.xz | |
Drivers: hv: Free msginfo when the buffer fails to decrypt
The early failure path in __vmbus_establish_gpadl() doesn't deallocate
msginfo if the buffer fails to decrypt.
Fix the leak by breaking out the cleanup code into a separate function
and calling it where required.
Fixes: d4dccf353db80 ("Drivers: hv: vmbus: Mark vmbus ring buffer visible to host in Isolation VM")
Reported-by: Michael Kelley <mkhlinux@outlook.com>
Closes: https://lore.kernel.org/linux-hyperv/SN6PR02MB41573796F9787F67E0E97049D472A@SN6PR02MB4157.namprd02.prod.outlook.com
Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
