* [PATCH 0/2] coresight: next v4.4-rc5
@ 2015-12-17 15:47 Mathieu Poirier
2015-12-17 15:47 ` [PATCH 1/2] coresight: checking for NULL string in coresight_name_match() Mathieu Poirier
2015-12-17 15:47 ` [PATCH 2/2] coresight: Fix a typo in Kconfig Mathieu Poirier
0 siblings, 2 replies; 3+ messages in thread
From: Mathieu Poirier @ 2015-12-17 15:47 UTC (permalink / raw)
To: gregkh; +Cc: linux-arm-kernel, linux-kernel
Good day Greg,
Please queue the following patches for the 4.5 cycle.
Regards,
Mathieu
Andrew F. Davis (1):
coresight: Fix a typo in Kconfig
Mathieu Poirier (1):
coresight: checking for NULL string in coresight_name_match()
drivers/hwtracing/coresight/Kconfig | 2 +-
drivers/hwtracing/coresight/coresight.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
2.1.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] coresight: checking for NULL string in coresight_name_match()
2015-12-17 15:47 [PATCH 0/2] coresight: next v4.4-rc5 Mathieu Poirier
@ 2015-12-17 15:47 ` Mathieu Poirier
2015-12-17 15:47 ` [PATCH 2/2] coresight: Fix a typo in Kconfig Mathieu Poirier
1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Poirier @ 2015-12-17 15:47 UTC (permalink / raw)
To: gregkh; +Cc: linux-arm-kernel, linux-kernel
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>
---
drivers/hwtracing/coresight/coresight.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c
index e25492137d8b..93738dfbf631 100644
--- a/drivers/hwtracing/coresight/coresight.c
+++ b/drivers/hwtracing/coresight/coresight.c
@@ -548,7 +548,7 @@ static int coresight_name_match(struct device *dev, void *data)
to_match = data;
i_csdev = to_coresight_device(dev);
- if (!strcmp(to_match, dev_name(&i_csdev->dev)))
+ if (to_match && !strcmp(to_match, dev_name(&i_csdev->dev)))
return 1;
return 0;
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] coresight: Fix a typo in Kconfig
2015-12-17 15:47 [PATCH 0/2] coresight: next v4.4-rc5 Mathieu Poirier
2015-12-17 15:47 ` [PATCH 1/2] coresight: checking for NULL string in coresight_name_match() Mathieu Poirier
@ 2015-12-17 15:47 ` Mathieu Poirier
1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Poirier @ 2015-12-17 15:47 UTC (permalink / raw)
To: gregkh; +Cc: linux-arm-kernel, linux-kernel
From: "Andrew F. Davis" <afd@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
drivers/hwtracing/coresight/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/Kconfig b/drivers/hwtracing/coresight/Kconfig
index 6c8921140f02..c85935f3525a 100644
--- a/drivers/hwtracing/coresight/Kconfig
+++ b/drivers/hwtracing/coresight/Kconfig
@@ -8,7 +8,7 @@ menuconfig CORESIGHT
This framework provides a kernel interface for the CoreSight debug
and trace drivers to register themselves with. It's intended to build
a topological view of the CoreSight components based on a DT
- specification and configure the right serie of components when a
+ specification and configure the right series of components when a
trace source gets enabled.
if CORESIGHT
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-17 15:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-17 15:47 [PATCH 0/2] coresight: next v4.4-rc5 Mathieu Poirier
2015-12-17 15:47 ` [PATCH 1/2] coresight: checking for NULL string in coresight_name_match() Mathieu Poirier
2015-12-17 15:47 ` [PATCH 2/2] coresight: Fix a typo in Kconfig Mathieu Poirier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).