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

Commit 5bf4d5b1 authored by Mulu He's avatar Mulu He Committed by Gerrit - the friendly Code Review server
Browse files

coresight: stm: Wrong condition check in unlink function



Wrong method used in parameter check for "entities", intent to zero
check for all bits in the "entities" array, but only check the pointer
so need replaced by bitmap_empty.

Change-Id: Id4ae42ebae3014741780da4450ff4ecbbeb1f2dc
Signed-off-by: default avatarMulu He <muluhe@codeaurora.org>
parent 92dd0e70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ static void stm_generic_unlink(struct stm_data *stm_data,
	if (!drvdata || !drvdata->csdev)
		return;
	/* If any OST entity is enabled do not disable the device */
	if (drvdata->entities == NULL)
	if (!bitmap_empty(drvdata->entities, OST_ENTITY_MAX))
		return;
	coresight_disable(drvdata->csdev);
}