Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
* If an event log is found then the securityfs files are setup to
* export it to userspace, otherwise nothing is done.
*
- * Returns -ENODEV if the firmware has no event log.
+ * Returns -ENODEV if the firmware has no event log or securityfs is not
+ * supported.
*/
int tpm_bios_log_setup(struct tpm_chip *chip)
{
return 0;
err:
+ rc = PTR_ERR(chip->bios_dir[cnt]);
chip->bios_dir[cnt] = NULL;
tpm_bios_log_teardown(chip);
- return -EIO;
+ return rc;
}
void tpm_bios_log_teardown(struct tpm_chip *chip)