[PATCH 5.4 097/320] x86/mce/inject: Avoid out-of-bounds write when setting flags