diff options
author | 2016-08-16 11:27:18 +0200 | |
---|---|---|
committer | 2016-09-27 11:41:30 +0300 | |
commit | d8ed9e87e6016433b8d178728a5391ea68101bca (patch) | |
tree | 5b4a890f5466bbf9aa882c5191eeeb08115429e8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fbdev: ssd1307fb: constify the device_info pointer (diff) | |
download | linux-dev-d8ed9e87e6016433b8d178728a5391ea68101bca.tar.xz linux-dev-d8ed9e87e6016433b8d178728a5391ea68101bca.zip |
fbdev: ssd1307fb: fix a possible NULL dereference
of_match_device could return NULL, and so cause a NULL pointer
dereference later.
For fixing this problem, we use of_device_get_match_data(), this will
simplify the code a little by using a standard function for
getting the match data.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions