summaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/eventlog/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tpm/eventlog/common.c')
-rw-r--r--drivers/char/tpm/eventlog/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/tpm/eventlog/common.c b/drivers/char/tpm/eventlog/common.c
index 639c3f395a..4c0bbba64e 100644
--- a/drivers/char/tpm/eventlog/common.c
+++ b/drivers/char/tpm/eventlog/common.c
@@ -47,6 +47,8 @@ static int tpm_bios_measurements_open(struct inode *inode,
if (!err) {
seq = file->private_data;
seq->private = chip;
+ } else {
+ put_device(&chip->dev);
}
return err;