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

Commit 1c99616b authored by Mulu He's avatar Mulu He
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 8588eafd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -300,7 +300,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);
}