diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2024-06-22 17:35:37 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2024-06-24 08:37:56 +0300 |
commit | 27d496627ec4b72de33c7c4dd622586217e8c051 (patch) | |
tree | 3ff779876f29a84f2f0dbe778cae3c0b5dab20e8 /drivers/ddr/marvell/axp/ddr3_write_leveling.c | |
parent | fe2ce09a0753634543c32cafe85eb87a625f76ca (diff) |
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 97707f12fdab ("tpm: Support boot measurements")
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'drivers/ddr/marvell/axp/ddr3_write_leveling.c')
0 files changed, 0 insertions, 0 deletions