1
0
Fork 0
remarkable-linux/drivers/hwtracing/coresight
Mathieu Poirier dc25a0a0d2 coresight: checking for NULL string in coresight_name_match()
[ Upstream commit fadf3a44e9 ]

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.

Cc: <stable@vger.kernel.org> # v3.18+
Reported-by: Tyler Baker <tyler.baker@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-02-01 12:22:21 -05:00
..
Kconfig coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
Makefile coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-etb10.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-etm-cp14.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-etm.h coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-etm3x.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-funnel.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-priv.h coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-replicator.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-tmc.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-tpiu.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight.c coresight: checking for NULL string in coresight_name_match() 2016-02-01 12:22:21 -05:00
of_coresight.c Char/Misc driver patches for 4.1-rc1 2015-04-21 09:42:58 -07:00