Using pdpram_blk here would cause an oops. We intended to use &freercvpool. Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c index d0637c3..076ba75 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c @@ -1115,7 +1115,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); _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel