Re: [PATCH v2 1/6] x86/tdx: Add TDREPORT TDX Module call support

From: Kuppuswamy, Sathyanarayanan
Date: Thu Jul 08 2021 - 13:07:08 EST




On 7/8/21 7:20 AM, Hans de Goede wrote:
Yes, new error codes might be introduced and you might forget to
update this (or other) checks.

Checking for errors really MUST always be done by checking for
ret != success (typically ret != 0 or ret < 0).

Only checking for known error codes means that if somehow an
unknown error code gets thrown this gets treated as success,
which is not acceptable behavior.

Got it. I will include this change in next version.

--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer