Skip to content

Commit

Permalink
drm: rcar-du: Don't put reference to drm_device in rcar_du_remove()
Browse files Browse the repository at this point in the history
[ Upstream commit c29b6b0 ]

The reference to the drm_device that was acquired by
devm_drm_dev_alloc() is released automatically by the devres
infrastructure. It must not be released manually, as that causes a
reference underflow..

Fixes: ea6aae1 ("drm: rcar-du: Embed drm_device in rcar_du_device")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Laurent Pinchart authored and gregkh committed Sep 15, 2021
1 parent 1eaee39 commit fba3b4f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/rcar-du/rcar_du_drv.c
Expand Up @@ -556,8 +556,6 @@ static int rcar_du_remove(struct platform_device *pdev)

drm_kms_helper_poll_fini(ddev);

drm_dev_put(ddev);

return 0;
}

Expand Down

0 comments on commit fba3b4f

Please sign in to comment.