Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpm: fix the return code, if the eventlog buffer is full
We currently return 'No space left on device' if the eventlong buffer we allocated is not enough. On a similar check later on that function during the call to tcg2_log_init() we return 'No buffer space available'. So switch both error codes to -ENOBUFS since we are always checking a buffer and not a device. Fixes: commit 97707f1 ("tpm: Support boot measurements") Reviewed-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]>
- Loading branch information