[PATCH OLK-5.10 V2 16/44] x86/fault: Add a helper function to sanitize error code