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

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

Merge "soc: qcom: qti_battery_debug: Add NULL check"

parents e2e7b603 1b68d5ed
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -615,6 +615,8 @@ static int battery_dbg_create_votables(struct battery_dbg_dev *bd,

	bd->votable = devm_kcalloc(bd->dev, num_votables,
				   sizeof(struct votable), GFP_KERNEL);
	if (!bd->votable)
		return -ENOMEM;

	for (id = 0; id < num_votables; id++) {
		bd->votable[id].bd = bd;