Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14087
b: refs/heads/master
c: f6a2382
h: refs/heads/master
i:
  14085: 09d05ee
  14083: cf16faa
  14079: 23f3a82
v: v3
  • Loading branch information
Kylene Jo Hall authored and Linus Torvalds committed Nov 14, 2005
1 parent a8ed99f commit 7fb6112
Show file tree
Hide file tree
Showing 2 changed files with 3 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: ad5ea3cc5f745aef243ade0dafc8cf6f7f0bfea7
refs/heads/master: f6a2382cec3ed9b67b01febfa85d7d72b254844a
5 changes: 2 additions & 3 deletions trunk/drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@ ssize_t tpm_read(struct file * file, char __user *buf,
ret_size = size;

down(&chip->buffer_mutex);
if (copy_to_user
((void __user *) buf, chip->data_buffer, ret_size))
if (copy_to_user(buf, chip->data_buffer, ret_size))
ret_size = -EFAULT;
up(&chip->buffer_mutex);
}
Expand Down Expand Up @@ -460,7 +459,7 @@ void tpm_remove_hardware(struct device *dev)
sysfs_remove_group(&dev->kobj, chip->vendor->attr_group);

dev_mask[chip->dev_num / TPM_NUM_MASK_ENTRIES ] &=
!(1 << (chip->dev_num % TPM_NUM_MASK_ENTRIES));
~(1 << (chip->dev_num % TPM_NUM_MASK_ENTRIES));

kfree(chip);

Expand Down

0 comments on commit 7fb6112

Please sign in to comment.