Commit f0d657e8 authored by Yuyang Du's avatar Yuyang Du Committed by Greg Kroah-Hartman

usbip: Fix uninitialized variable bug in vhci

The patch 03cd00d5: "usbip: vhci-hcd: Set the vhci structure up
to work" introduced a bug which uses a vairable without initialization
in error handling code. Fix it.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarYuyang Du <yuyang.du@intel.com>
Acked-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f04c210
...@@ -1301,7 +1301,7 @@ static struct hc_driver vhci_hc_driver = { ...@@ -1301,7 +1301,7 @@ static struct hc_driver vhci_hc_driver = {
static int vhci_hcd_probe(struct platform_device *pdev) static int vhci_hcd_probe(struct platform_device *pdev)
{ {
struct vhci *vhci; struct vhci *vhci = *((void **)dev_get_platdata(&pdev->dev));
struct usb_hcd *hcd_hs; struct usb_hcd *hcd_hs;
struct usb_hcd *hcd_ss; struct usb_hcd *hcd_ss;
int ret; int ret;
......
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