Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135991
b: refs/heads/master
c: 97811e3
h: refs/heads/master
i:
  135989: 202bff6
  135987: d92a0b0
  135983: 94b44d3
v: v3
  • Loading branch information
Stefan Richter committed Mar 24, 2009
1 parent 0ebc20c commit b3df8a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 1f3125af8ed7410cc0ebcc0acd59bbfc1ae0057a
refs/heads/master: 97811e347310766030a648fdf0e407b2c91a39c1
8 changes: 4 additions & 4 deletions trunk/drivers/firewire/fw-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,10 @@ static int fw_device_op_release(struct inode *inode, struct file *file)
struct event *e, *next_e;
struct client_resource *r, *next_r;

mutex_lock(&client->device->client_list_mutex);
list_del(&client->link);
mutex_unlock(&client->device->client_list_mutex);

if (client->buffer.pages)
fw_iso_buffer_destroy(&client->buffer, client->device->card);

Expand All @@ -1026,10 +1030,6 @@ static int fw_device_op_release(struct inode *inode, struct file *file)
list_for_each_entry_safe(e, next_e, &client->event_list, link)
kfree(e);

mutex_lock(&client->device->client_list_mutex);
list_del(&client->link);
mutex_unlock(&client->device->client_list_mutex);

fw_device_put(client->device);
kfree(client);

Expand Down

0 comments on commit b3df8a2

Please sign in to comment.