Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231995
b: refs/heads/master
c: 6a5b3be
h: refs/heads/master
i:
  231993: 1c8e720
  231991: e80c0de
v: v3
  • Loading branch information
Daniel De Graaf authored and Jeremy Fitzhardinge committed Dec 20, 2010
1 parent 5b3bf9c commit 1d18a94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7808121b9a1e44ef12fecd49fa6c268f27a150fc
refs/heads/master: 6a5b3beff916a19e7672f8c0330b4f82ed367be2
5 changes: 5 additions & 0 deletions trunk/drivers/xen/xenfs/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ static int xenbus_file_release(struct inode *inode, struct file *filp)
struct xenbus_file_priv *u = filp->private_data;
struct xenbus_transaction_holder *trans, *tmp;
struct watch_adapter *watch, *tmp_watch;
struct read_buffer *rb, *tmp_rb;

/*
* No need for locking here because there are no other users,
Expand All @@ -561,6 +562,10 @@ static int xenbus_file_release(struct inode *inode, struct file *filp)
free_watch_adapter(watch);
}

list_for_each_entry_safe(rb, tmp_rb, &u->read_buffers, list) {
list_del(&rb->list);
kfree(rb);
}
kfree(u);

return 0;
Expand Down

0 comments on commit 1d18a94

Please sign in to comment.