Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62203
b: refs/heads/master
c: 02d6112
h: refs/heads/master
i:
  62201: 8b38bb1
  62199: c58655e
v: v3
  • Loading branch information
Linus Torvalds committed Jul 20, 2007
1 parent c0c3835 commit 19da2dc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 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: 941091024ef0f2f7e09eb81201d293ac18833cc8
refs/heads/master: 02d6112cd7d75bf30685ee4b2e9dc0291b4d3133
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
4 changes: 2 additions & 2 deletions trunk/kernel/ksysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ KERNEL_ATTR_RO(kexec_crash_loaded);
/*
* Make /sys/kernel/notes give the raw contents of our kernel .notes section.
*/
extern const char __start_notes __attribute__((weak));
extern const char __stop_notes __attribute__((weak));
extern const void __start_notes __attribute__((weak));
extern const void __stop_notes __attribute__((weak));
#define notes_size (&__stop_notes - &__start_notes)

static ssize_t notes_read(struct kobject *kobj, struct bin_attribute *bin_attr,
Expand Down

0 comments on commit 19da2dc

Please sign in to comment.