[PATCH 5.14 288/849] lib/xz: Validate the value before assigning it to an enum variable