Commit 94ffac86 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix up whiteheat syntax errors from previous patch.

parent f7e3fb9d
......@@ -367,7 +367,7 @@ static int whiteheat_attach (struct usb_serial *serial)
pipe = usb_sndbulkpipe (serial->dev, command_port->bulk_out_endpointAddress);
command = kmalloc(2, GFP_KERNEL);
if (!command)
goto no_comand_buffer;
goto no_command_buffer;
command[0] = WHITEHEAT_GET_HW_INFO;
command[1] = 0;
......@@ -539,7 +539,7 @@ static int whiteheat_attach (struct usb_serial *serial)
}
kfree(result);
no_result_buffer:
kfree(command):
kfree(command);
no_command_buffer:
return -ENOMEM;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment