Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61988
b: refs/heads/master
c: 178554a
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jul 20, 2007
1 parent 4323b85 commit 8f6950e
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: 22982a5687d8abf7bafe6d307585464f47089f18
refs/heads/master: 178554ae75739e91dc4d7c3e42a3db95448cc5bf
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 @@ -427,18 +427,23 @@ static int tpm_ascii_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_ascii_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_ascii_bios_measurements_ops = {
Expand Down

0 comments on commit 8f6950e

Please sign in to comment.