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

Commit ce37c278 authored by Mark Brown's avatar Mark Brown Committed by Shashank Mittal
Browse files

coresight: etb10: Fix check for bogus buffer depth



We attempt to sanity check the buffer depth reported by the hardware by
making sure it is not less than zero however this check will never be true
since the buffer depth is stored in an unsigned integer. Instead change
the check to look for the top bit being set which was the intention.

Change-Id: I0c84a6adb7fc61cadaffa1e3a2c644bc3b0d57b6
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: f5da7cb24b78f2398c80a3ba25438602a68fc3e4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarShashank Mittal <mittals@codeaurora.org>
parent e1870208
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment