Unverified Commit c98d4e5d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10092 usb: host: ohci-tmio: check return value after calling platform_get_resource()

parents 4ab44be6 429c7164
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ static int ohci_hcd_tmio_drv_probe(struct platform_device *dev)
	if (usb_disabled())
		return -ENODEV;

	if (!cell)
	if (!cell || !regs || !config || !sram)
		return -EINVAL;

	hcd = usb_create_hcd(&ohci_tmio_hc_driver, &dev->dev, dev_name(&dev->dev));