Skip to content

Commit

Permalink
firewire net: Fix memory leakage in fwnet_remove().
Browse files Browse the repository at this point in the history
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: Stefan Richter <[email protected]>
  • Loading branch information
yoshfuji authored and Stefan Richter committed Mar 13, 2013
1 parent 2fbd8df commit 48a8406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/firewire/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,8 @@ static int fwnet_remove(struct device *_dev)
fwnet_fifo_stop(dev);
if (dev->broadcast_rcv_context) {
fw_iso_context_stop(dev->broadcast_rcv_context);
kfree(dev->broadcast_rcv_buffer_ptrs);
dev->broadcast_rcv_buffer_ptrs = NULL;
fw_iso_buffer_destroy(&dev->broadcast_rcv_buffer,
dev->card);
fw_iso_context_destroy(dev->broadcast_rcv_context);
Expand Down

0 comments on commit 48a8406

Please sign in to comment.