diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-17 11:54:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-17 13:14:13 -0800 |
commit | 237a1a1aef91ab654988cb459d783ac0ee09d2ea (patch) | |
tree | 3f9d3527b76271f8382a3467f873fb699efc5744 | |
parent | 93760716840a3feada381786f2defbd47a8099de (diff) | |
download | op-kernel-dev-237a1a1aef91ab654988cb459d783ac0ee09d2ea.zip op-kernel-dev-237a1a1aef91ab654988cb459d783ac0ee09d2ea.tar.gz |
Staging: ft1000-usb: freeing uninitialized pointer
GCC complains that if (info->CardReady) is false we kfree() an
uninitialized pointer.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c b/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c index 7b496332..76cee9e 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c @@ -650,7 +650,7 @@ static long ft1000_ChIoctl (struct file *File, unsigned int Command, break; case IOCTL_SET_DPRAM_CMD: { - IOCTL_DPRAM_BLK *dpram_data; + IOCTL_DPRAM_BLK *dpram_data = NULL; //IOCTL_DPRAM_COMMAND dpram_command; u16 qtype; u16 msgsz; |