Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62194
b: refs/heads/master
c: 03ce110
h: refs/heads/master
v: v3
  • Loading branch information
Reiner Sailer authored and Linus Torvalds committed Jul 20, 2007
1 parent 7469406 commit 4c0bb96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1158e63dfeb3928e94c768f0a403b3e0e799f70
refs/heads/master: 03ce11048b3832f5f0c471ccdb3363a870a14ac1
11 changes: 8 additions & 3 deletions trunk/drivers/char/tpm/tpm_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,18 +465,23 @@ static int tpm_binary_bios_measurements_open(struct inode *inode,
return -ENOMEM;

if ((err = read_log(log)))
return err;
goto out_free;

/* now register seq file */
err = seq_open(file, &tpm_binary_b_measurments_seqops);
if (!err) {
seq = file->private_data;
seq->private = log;
} else {
kfree(log->bios_event_log);
kfree(log);
goto out_free;
}

out:
return err;
out_free:
kfree(log->bios_event_log);
kfree(log);
goto out;
}

const struct file_operations tpm_binary_bios_measurements_ops = {
Expand Down

0 comments on commit 4c0bb96

Please sign in to comment.