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

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

Merge "msm: lmh_lite: Avoid accessing sensor remove API in critical section"

parents e9f04b9a ad38209c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -742,9 +742,9 @@ static int lmh_sensor_init(struct platform_device *pdev)
	pr_debug("LMH Sensor Init complete\n");
	pr_debug("LMH Sensor Init complete\n");


init_exit:
init_exit:
	up_write(&lmh_sensor_access);
	if (ret)
	if (ret)
		lmh_remove_sensors();
		lmh_remove_sensors();
	up_write(&lmh_sensor_access);


	return ret;
	return ret;
}
}