diff options
| author | Giulio Benetti <[email protected]> | 2018-10-05 21:59:50 +0000 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2018-11-06 15:55:24 +0000 |
| commit | 7f4cedd882f7cae83177066c2b239ef457ce4a42 (patch) | |
| tree | 016de1a53bbe2bc25c70ce834533089fac2db49f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | Linux 4.20-rc1 (diff) | |
| download | kernel-7f4cedd882f7cae83177066c2b239ef457ce4a42.tar.gz kernel-7f4cedd882f7cae83177066c2b239ef457ce4a42.zip | |
drm/sun4i: tcon: fix check of tcon->panel null pointer
Since tcon->panel is a pointer returned by of_drm_find_panel() need to
check if it is not NULL, hence a valid pointer.
IS_ERR() instead checks return error values, not NULL pointers.
Substitute "if (!IS_ERR(tcon->panel))" with "if (tcon->panel)".
Signed-off-by: Giulio Benetti <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
