projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0b74e
)
x86: fix unintended fallthrough case from XSA-154
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Thu, 18 Feb 2016 14:10:07 +0000
(15:10 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 18 Feb 2016 14:10:07 +0000
(15:10 +0100)
... and annotate the other deliberate one: Coverity objects otherwise.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
One of the two instances was actually a bug.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm.c
b/xen/arch/x86/mm.c
index ee0ddff9c6e97bc80480102b1082aaf27466be9a..ea3f9f2353aade6bf39ae4b3aa4998466e7d7b7e 100644
(file)
--- a/
xen/arch/x86/mm.c
+++ b/
xen/arch/x86/mm.c
@@
-925,9
+925,11
@@
get_page_from_l1e(
case 0:
break;
case 1:
- if ( is_hardware_domain(l1e_owner) )
+ if ( !is_hardware_domain(l1e_owner) )
+ break;
+ /* fallthrough */
case -1:
-
return 0;
+ return 0;
default:
ASSERT_UNREACHABLE();
}