[PATCH openEuler-5.10 21/90] x86/fault: Add a helper function to sanitize error code