aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers
diff options
context:
space:
mode:
authorAndrew Cooper <andrew.cooper3@citrix.com>2013-09-16 12:22:20 +0200
committerJan Beulich <jbeulich@suse.com>2013-09-16 12:22:20 +0200
commit42c5b1214071d363a52c6356dfe2ed820f500849 (patch)
tree448f02feb3bc20cbc825ccefc4fda5ac0a407660 /xen/drivers
parent593470233ff38385df9dcf5690cc58c7a4fb290d (diff)
downloadxen-42c5b1214071d363a52c6356dfe2ed820f500849.tar.gz
xen-42c5b1214071d363a52c6356dfe2ed820f500849.tar.bz2
xen-42c5b1214071d363a52c6356dfe2ed820f500849.zip
hvm/vpmu: Prevent dump handlers from incorrectly mutating state
Discovered by Coverity, CID 1055181 core2_vpmu_dump() was incorrectly setting VPMU_CONTEXT_LOADED when it was intending to check for it. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> This would have been avoided if the dump function declared all its pointers "const" - doing this now (also in SVM). Also fixing some indentation issues at once. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Diffstat (limited to 'xen/drivers')
0 files changed, 0 insertions, 0 deletions