diff options
author | Dan Carpenter <error27@gmail.com> | 2010-10-15 05:40:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-15 12:24:39 -0700 |
commit | 1055cc99bd84ff478fa18a1964b2445d551d0bc8 (patch) | |
tree | 0c27ead9236a01bfc3cb768600e23f0a9d70091d | |
parent | 79e7c561aeea958479194e24d711e94615ea2823 (diff) | |
download | op-kernel-dev-1055cc99bd84ff478fa18a1964b2445d551d0bc8.zip op-kernel-dev-1055cc99bd84ff478fa18a1964b2445d551d0bc8.tar.gz |
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>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c index 0ff89c0..3cbf6a8 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); |