|
@@ -736,7 +736,7 @@ int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf)
|
|
|
if (chip == NULL)
|
|
|
return -ENODEV;
|
|
|
rc = __tpm_pcr_read(chip, pcr_idx, res_buf);
|
|
|
- module_put(chip->dev->driver->owner);
|
|
|
+ tpm_chip_put(chip);
|
|
|
return rc;
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(tpm_pcr_read);
|
|
@@ -775,7 +775,7 @@ int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash)
|
|
|
rc = transmit_cmd(chip, &cmd, EXTEND_PCR_RESULT_SIZE,
|
|
|
"attempting extend a PCR value");
|
|
|
|
|
|
- module_put(chip->dev->driver->owner);
|
|
|
+ tpm_chip_put(chip);
|
|
|
return rc;
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(tpm_pcr_extend);
|