]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
coresight: checking for NULL string in coresight_name_match()
authorMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 23 Oct 2015 14:47:48 +0000 (08:47 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 23 Oct 2015 14:54:12 +0000 (08:54 -0600)
commitc0d90ad7604a4a9e3719ae7ebf00e612e5b2d43e
tree8632699b125589a14c4057e3448980cc468011fe
parent792f2b1f98e5d29086bfbaadb5cca4b061caf9a0
coresight: checking for NULL string in coresight_name_match()

Connection child names associated to ports can sometimes be NULL,
which is the case when booting a system on QEMU or when the Coresight
power domain isn't switched on.

This patch is adding a check to make sure a NULL string isn't fed
to strcmp(), something that avoid crashing the system.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight.c