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:Mark Brown <broonie@kernel.org> Signed-off-by:
Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by:
Greg 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:
Shashank Mittal <mittals@codeaurora.org>
Loading
Please register or sign in to comment