Skip to content

Commit

Permalink
Staging: ft1000-usb: use the correct list head
Browse files Browse the repository at this point in the history
Using pdpram_blk here would cause an oops.  We intended to use
&freercvpool.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Tested by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Oct 15, 2010
1 parent 79e7c56 commit 1055cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ u16 init_ft1000_netdev(struct ft1000_device *ft1000dev)


err_free:
list_for_each_safe(cur, tmp, &pdpram_blk->list) {
list_for_each_safe(cur, tmp, &freercvpool) {
pdpram_blk = list_entry(cur, DPRAM_BLK, list);
list_del(&pdpram_blk->list);
kfree(pdpram_blk->pbuffer);
Expand Down

0 comments on commit 1055cc9

Please sign in to comment.