Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67992
b: refs/heads/master
c: 50ab1a7
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 2ae88a3 commit 3566ae2
Show file tree
Hide file tree
Showing 2 changed files with 5 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: b05f0548dabd20433f8c201a0307103721d6a18b
refs/heads/master: 50ab1a72863b1ad4b117862bc52610f8d4535609
9 changes: 4 additions & 5 deletions trunk/fs/sysfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,10 @@ static int sysfs_release(struct inode * inode, struct file * filp)
{
struct sysfs_buffer *buffer = filp->private_data;

if (buffer) {
if (buffer->page)
free_page((unsigned long)buffer->page);
kfree(buffer);
}
if (buffer->page)
free_page((unsigned long)buffer->page);
kfree(buffer);

return 0;
}

Expand Down

0 comments on commit 3566ae2

Please sign in to comment.