diff options
author | Brian Norris <briannorris@chromium.org> | 2021-09-23 17:33:54 -0700 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2021-10-14 21:55:06 +0200 |
commit | 32a267e9c057e1636e7afdd20599aa5741a73079 (patch) | |
tree | e2e358638852aef920ebd477e2bb150f6356f7b1 /lib/kunit/executor_test.c | |
parent | 5f31dbeae8a88f31c3eb4eb526ab4807c40da241 (diff) |
drm/panel: innolux-p079zca: Delete panel on attach() failure
If we fail to attach (e.g., because 1 of 2 dual-DSI controllers aren't
ready), we leave a dangling drm_panel reference to freed memory. Clean
that up on failure.
This problem exists since the driver's introduction, but is especially
relevant after refactored for dual-DSI variants.
Fixes: 14c8f2e9f8ea ("drm/panel: add Innolux P079ZCA panel driver")
Fixes: 7ad4e4636c54 ("drm/panel: p079zca: Refactor panel driver to support multiple panels")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210923173336.2.I9023cf8811a3abf4964ed84eb681721d8bb489d6@changeid
Diffstat (limited to 'lib/kunit/executor_test.c')
0 files changed, 0 insertions, 0 deletions