diff options
| author | Christophe JAILLET <[email protected]> | 2021-05-09 07:13:12 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-05-14 11:26:04 +0000 |
| commit | 0b0226be3a52dadd965644bc52a807961c2c26df (patch) | |
| tree | dd9fd39e71a2da8f4dd190d58d31da2128e60e46 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | uio_hv_generic: Fix a memory leak in error handling paths (diff) | |
| download | kernel-0b0226be3a52dadd965644bc52a807961c2c26df.tar.gz kernel-0b0226be3a52dadd965644bc52a807961c2c26df.zip | |
uio_hv_generic: Fix another memory leak in error handling paths
Memory allocated by 'vmbus_alloc_ring()' at the beginning of the probe
function is never freed in the error handling path.
Add the missing 'vmbus_free_ring()' call.
Note that it is already freed in the .remove function.
Fixes: cdfa835c6e5e ("uio_hv_generic: defer opening vmbus until first use")
Cc: stable <[email protected]>
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/0d86027b8eeed8e6360bc3d52bcdb328ff9bdca1.1620544055.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
