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

Commit eb49dee5 authored by Ben Romberger's avatar Ben Romberger
Browse files

ASoC: msm: Fix HW Delay print



HW delay print allows a possible NULL pointer dereference.
Move print to location that does not allow NULL dereference.

CRs-Fixed: 582529
Change-Id: If99531d4b59d1ff78be43ad85e7b5e870798a0ed
Signed-off-by: default avatarBen Romberger <bromberg@codeaurora.org>
parent 155357d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,9 +405,9 @@ int get_hw_delay(int32_t path, struct hw_delay_entry *entry)

done:
	mutex_unlock(&acdb_data.acdb_mutex);
ret:
	pr_debug("ACDB=> %s: Path = %d samplerate = %u usec = %u status %d\n",
		 __func__, path, entry->sample_rate, entry->delay_usec, result);
ret:
	return result;
}