Commit 1055cc99 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

Staging: ft1000-usb: use the correct list head

Using pdpram_blk here would cause an oops.  We intended to use
&freercvpool.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Tested by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 79e7c561
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment