Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f38e857b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Check for null pointer in kgsl_busmon_probe()"

parents e05d31d9 c5470118
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2920,6 +2920,9 @@ static int kgsl_busmon_probe(struct platform_device *pdev)
	const struct of_device_id *pdid =
			of_match_device(busmon_match_table, &pdev->dev);

	if (pdid == NULL)
		return -ENXIO;

	device = (struct kgsl_device *)pdid->data;
	device->busmondev = &pdev->dev;
	dev_set_drvdata(device->busmondev, device);