aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael Kelley <[email protected]>2018-08-10 23:06:11 +0000
committerGreg Kroah-Hartman <[email protected]>2018-09-12 09:46:46 +0200
commitf25a7ece08bdb1f2b3c4bbeae942682fc3a99dde (patch)
tree2670ed8bb674f0650247211e1e12cb49298e74d5 /tools/perf/scripts/python
parent8e6925631aae550bdaea4c442e8ecbab4a9685d2 (diff)
Drivers: hv: vmbus: Fix synic per-cpu context initialization
If hv_synic_alloc() errors out, the state of the per-cpu context for some CPUs is unknown since the zero'ing is done as each CPU is iterated over. In such case, hv_synic_cleanup() may try to free memory based on uninitialized values. Fix this by zero'ing the per-cpu context for all CPUs before doing any memory allocations that might fail. Signed-off-by: Michael Kelley <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions