[PATCH v3 0/3] MR5035: Change SetLastError to RestoreLastError if appropriate