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

Commit 49da4227 authored by ansharma's avatar ansharma
Browse files

drivers: leds-qpnp-flash: Fix infinite loop in flash driver.



Fix a possible infinite loop in case of failure during led
flash module disable.

CRs-Fixed: 1001113
Change-Id: I4bba932691dd83f92f25e4bd3c597bfeae20618f
Signed-off-by: default avataransharma <ansharma@codeaurora.org>
parent 296a253b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1724,10 +1724,9 @@ exit_flash_hdrm_sns:
	}
exit_flash_led_work:
	rc = qpnp_flash_led_module_disable(led, flash_node);
	if (rc) {
	if (rc)
		dev_err(&led->spmi_dev->dev, "Module disable failed\n");
		goto exit_flash_led_work;
	}

error_enable_gpio:
	if (flash_node->flash_on && flash_node->num_regulators > 0)
		flash_regulator_enable(led, flash_node, false);