diff options
author | Michael Kelley <mikelley@microsoft.com> | 2018-08-11 01:06:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-12 09:46:46 +0200 |
commit | f25a7ece08bdb1f2b3c4bbeae942682fc3a99dde (patch) | |
tree | 2670ed8bb674f0650247211e1e12cb49298e74d5 /LICENSES/other | |
parent | uio_hv_generic: drop #ifdef DEBUG (diff) | |
download | linux-f25a7ece08bdb1f2b3c4bbeae942682fc3a99dde.tar.xz linux-f25a7ece08bdb1f2b3c4bbeae942682fc3a99dde.zip |
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 <mikelley@microsoft.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions