提交 237a1a1a 编写于 作者: D Dan Carpenter 提交者: Greg Kroah-Hartman

Staging: ft1000-usb: freeing uninitialized pointer

GCC complains that if (info->CardReady) is false we kfree() an
uninitialized pointer.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 93760716
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册