Add brackets to the "else" clause in both check_ibrs_inuse() and
clear_ibpb_inuse() to match indentations. The brackets are not
required but may prevent a bug when indented code is mistakenly added
without adding brackets.
Orabug:
27625404
Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
static inline int check_ibrs_inuse(void)
{
- if (use_ibrs & SPEC_CTRL_IBRS_INUSE)
+ if (use_ibrs & SPEC_CTRL_IBRS_INUSE) {
return 1;
- else
+ } else {
/* rmb to prevent wrong speculation for security */
rmb();
+ }
return 0;
}
static inline int check_ibpb_inuse(void)
{
- if (use_ibpb & SPEC_CTRL_IBPB_INUSE)
+ if (use_ibpb & SPEC_CTRL_IBPB_INUSE) {
return 1;
- else
+ } else {
/* rmb to prevent wrong speculation for security */
rmb();
+ }
return 0;
}