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

!9868 usb: musb: tusb6010: check return value after calling platform_get_resource()

parents 8585cfc0 7012eadd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,11 @@ static int tusb_musb_init(struct musb *musb)

	/* dma address for async dma */
	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!mem) {
		pr_debug("no async dma resource?\n");
		ret = -ENODEV;
		goto done;
	}
	musb->async = mem->start;

	/* dma address for sync dma */