drm/bochs: Fix connector leak during driver unload
authorSam Bobroff <sbobroff@linux.ibm.com>
Tue, 21 May 2019 05:28:39 +0000 (15:28 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:24:30 +0000 (07:24 +0200)
commit5bca88972a6b1945c18a5b86a6c2a19c05865e4c
treeb5cfdf252dca5c519e111547dfb05af5659af6e9
parent3f71d923758560cea2bccf226c78849614805e29
drm/bochs: Fix connector leak during driver unload

[ Upstream commit 3c6b8625dde82600fd03ad1fcba223f1303ee535 ]

When unloading the bochs-drm driver, a warning message is printed by
drm_mode_config_cleanup() because a reference is still held to one of
the drm_connector structs.

Correct this by calling drm_atomic_helper_shutdown() in
bochs_pci_remove().

Fixes: 6579c39594ae ("drm/bochs: atomic: switch planes to atomic, wire up helpers.")
Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Link: http://patchwork.freedesktop.org/patch/msgid/93b363ad62f4938d9ddf3e05b2a61e3f66b2dcd3.1558416473.git.sbobroff@linux.ibm.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bochs/bochs_drv.c