coresight: etb10: Fix check for bogus buffer depth
authorMark Brown <broonie@kernel.org>
Fri, 10 Apr 2015 15:25:37 +0000 (09:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 May 2015 19:56:15 +0000 (12:56 -0700)
commitf5da7cb24b78f2398c80a3ba25438602a68fc3e4
treea15ec43632c5e91ae8ab148c9a37f73e95e10bf2
parentcc5454490b514a87ccf99fce7ee224cc95980d99
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.

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>
drivers/hwtracing/coresight/coresight-etb10.c