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)
committerWolfram Sang <wsa@kernel.org>
Fri, 19 Jun 2020 07:20:15 +0000 (09:20 +0200)
commitf78d4032de60f50fd4afaa0fb68ea03b985f820a
treeca416ef99c110114eccb190db7a032f03136dd81
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
drm: encoder_slave: fix refcouting error for modules

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>
drivers/gpu/drm/drm_encoder_slave.c