drm: encoder_slave: fix refcouting error for modules
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 15 Jun 2020 07:58:10 +0000 (09:58 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:38:31 +0000 (15:38 -0400)
commitecc2b1e556983a2d254108b3ec44bb398e09ffd3
tree8a2e6ab941bcec83bdf7fb7186fe072ed1f34440
parent3a4b09605f727d40cf104c26a83707c67f4e10e9
drm: encoder_slave: fix refcouting error for modules

[ Upstream commit f78d4032de60f50fd4afaa0fb68ea03b985f820a ]

module_put() balances try_module_get(), not request_module(). Fix the
error path to match that.

Fixes: 2066facca4c7 ("drm/kms: slave encoder interface.")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_encoder_slave.c