Staging: ft1000-usb: use the correct list head
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>
This commit is contained in:
parent
79e7c561ae
commit
1055cc99bd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user