aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-10-09 17:26:55 +0000
committerIngo Molnar <[email protected]>2017-10-10 10:51:07 +0000
commit629eb703d3e46aa570c6c91235d38fd09ed8c58b (patch)
tree9011108701e6481c1248d097fcb666f1a6784493 /lib/net_utils.c
parentperf/core: Fix cgroup time when scheduling descendants (diff)
downloadkernel-629eb703d3e46aa570c6c91235d38fd09ed8c58b.tar.gz
kernel-629eb703d3e46aa570c6c91235d38fd09ed8c58b.zip
perf/x86/intel/uncore: Fix memory leaks on allocation failures
Currently if an allocation fails then the error return paths don't free up any currently allocated pmus[].boxes and pmus causing a memory leak. Add an error clean up exit path that frees these objects. Detected by CoverityScan, CID#711632 ("Resource Leak") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Fixes: 087bfbb03269 ("perf/x86: Add generic Intel uncore PMU support") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions