mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
usbip: Fix uninitialized variable bug in vhci
The patch 03cd00d538
: "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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Yuyang Du <yuyang.du@intel.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4f04c210d0
commit
f0d657e80d
@ -1301,7 +1301,7 @@ static struct hc_driver vhci_hc_driver = {
|
||||
|
||||
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_ss;
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user