[PATCH 4.14 057/186] x86/mce/inject: Avoid out-of-bounds write when setting flags