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

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

Merge "Bluetooth: Re-initialize regulator to NULL on error"

parents 76878c02 24edf31e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@ static int bt_vreg_init(struct bt_power_vreg_data *vreg)
		rc = PTR_ERR(vreg->reg);
		pr_err("%s: regulator_get(%s) failed. rc=%d\n",
			__func__, vreg->name, rc);
		vreg->reg = NULL;
		goto out;
	}