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

Commit eca18dd4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: npu: Initialize dev_lock mutex before it is used"

parents 4fbc7d5e 6326bdda
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2113,6 +2113,7 @@ static int npu_probe(struct platform_device *pdev)
		return -EFAULT;

	npu_dev->pdev = pdev;
	mutex_init(&npu_dev->dev_lock);

	platform_set_drvdata(pdev, npu_dev);
	res = platform_get_resource_byname(pdev,
@@ -2302,8 +2303,6 @@ static int npu_probe(struct platform_device *pdev)
	if (rc)
		goto error_driver_init;

	mutex_init(&npu_dev->dev_lock);

	rc = npu_host_init(npu_dev);
	if (rc) {
		NPU_ERR("unable to init host\n");