Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130418
b: refs/heads/master
c: 05dfdbb
h: refs/heads/master
v: v3
  • Loading branch information
Mark Wallis authored and Rusty Russell committed Jan 30, 2009
1 parent 97a09bc commit bc2fec5
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: b44d49ab0954accefba4c71274ab58abe1c25c52
refs/heads/master: 05dfdbbd678ea2b642db73f48b75667a23d15484
5 changes: 2 additions & 3 deletions trunk/drivers/lguest/lguest_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,8 @@ static int close(struct inode *inode, struct file *file)
* kmalloc()ed string, either of which is ok to hand to kfree(). */
if (!IS_ERR(lg->dead))
kfree(lg->dead);
/* We clear the entire structure, which also marks it as free for the
* next user. */
memset(lg, 0, sizeof(*lg));
/* Free the memory allocated to the lguest_struct */
kfree(lg);
/* Release lock and exit. */
mutex_unlock(&lguest_lock);

Expand Down

0 comments on commit bc2fec5

Please sign in to comment.