diff options
| author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2015-12-17 08:47:02 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-03 15:07:14 -0800 |
| commit | 53cc688d090bbd461e92ab28ecf4bde8b0c2a6da (patch) | |
| tree | 47b935d3c860a754cf1d382c1fffde59780da146 /tools/perf/scripts | |
| parent | 5c6f66674274958e0ea2d2d6c7a905e4ea73881e (diff) | |
coresight: checking for NULL string in coresight_name_match()
commit fadf3a44e974b030e7145218ad1ab25e3ef91738 upstream.
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.
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>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
