diff options
| author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-04-29 13:42:32 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-19 08:15:59 +0200 |
| commit | 94fd6f72a82621ced478a0a417f4dccc244f7df5 (patch) | |
| tree | 0e4dab572dd30c3da9abcd2aa1f9fb781525994d /drivers/soc/qcom | |
| parent | 86f305a9aca0053477f2c101ff6ecced37da210c (diff) | |
| download | linux-94fd6f72a82621ced478a0a417f4dccc244f7df5.tar.gz linux-94fd6f72a82621ced478a0a417f4dccc244f7df5.tar.bz2 linux-94fd6f72a82621ced478a0a417f4dccc244f7df5.zip | |
drm/tilcdc: fix leak & null ref in panel_connector_get_modes
[ Upstream commit 3f9c1c872cc97875ddc8d63bc9fe6ee13652b933 ]
If videomode_from_timings() returns true, the mode allocated with
drm_mode_create will be leaked.
Also, the return value of drm_mode_create() is never checked, and thus
could cause NULL deref.
Fix these two issues.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200429104234.18910-1-tomi.valkeinen@ti.com
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/soc/qcom')
0 files changed, 0 insertions, 0 deletions
