diff options
| author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2015-11-24 15:36:57 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-13 19:59:48 -0800 |
| commit | 5f8b90431fc9613d4559a602a1070b2270ff4444 (patch) | |
| tree | 8070ebab7bdd3b646fb203b38b16e3840dc57393 /tools/perf/scripts/python/bin | |
| parent | 4d2ae601d80675af025e7a5bcbe918c58b6743aa (diff) | |
| download | linux-5f8b90431fc9613d4559a602a1070b2270ff4444.tar.gz linux-5f8b90431fc9613d4559a602a1070b2270ff4444.zip | |
serial: imx: fix a possible NULL dereference
of_match_device could return NULL, and so cause a NULL pointer
dereference later.
Even if the probability of this case is very low, fixing it made
static analyzers happy.
Solving this with of_device_get_match_data made also code simplier.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
