]> git.baikalelectronics.ru Git - kernel.git/commit
drm/meson: Fix an un-handled error path in 'meson_drv_bind_master()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 11 Jun 2018 16:53:35 +0000 (18:53 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 26 Jun 2018 08:22:29 +0000 (10:22 +0200)
commit1c50342c476f59c8a647496333350666da087d2a
tree9a6c2377e6e0e0b074bc1b060e99e7964627075f
parentb88fc95d5d15b83f5e39849357a70e040702d1d6
drm/meson: Fix an un-handled error path in 'meson_drv_bind_master()'

If 'platform_get_resource_byname()' fails, we should release some resources
before leaving, as already done in the other error handling path of the
function.

Fixes: 378c12e3e3e1 ("drm/meson: Fix potential NULL dereference in meson_drv_bind_master()")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180611165335.24542-1-christophe.jaillet@wanadoo.fr
drivers/gpu/drm/meson/meson_drv.c