From 1055cc99bd84ff478fa18a1964b2445d551d0bc8 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 15 Oct 2010 05:40:42 +0200 Subject: [PATCH] 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 Tested by: Marek Belisko Signed-off-by: Greg Kroah-Hartman --- drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c index 0ff89c0d31b3..3cbf6a87aaf1 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c @@ -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); -- 2.20.1