diff options
| author | Michael Kelley <mikelley@microsoft.com> | 2018-08-10 23:06:11 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-12 09:46:46 +0200 |
| commit | f25a7ece08bdb1f2b3c4bbeae942682fc3a99dde (patch) | |
| tree | 2670ed8bb674f0650247211e1e12cb49298e74d5 /include/uapi/linux | |
| parent | 8e6925631aae550bdaea4c442e8ecbab4a9685d2 (diff) | |
| download | cachepc-linux-f25a7ece08bdb1f2b3c4bbeae942682fc3a99dde.tar.gz cachepc-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 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
