[PATCH 5.10 199/563] x86/mce/inject: Avoid out-of-bounds write when setting flags