drm/hyperv: Fix an error handling path in hyperv_vmbus_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 31 Jul 2022 20:01:55 +0000 (22:01 +0200)
committerWei Liu <wei.liu@kernel.org>
Mon, 15 Aug 2022 15:55:17 +0000 (15:55 +0000)
commitf1f63cbb705dc38826369496c6fc12c1b8db1324
treef2a70639eaf4f2a0fd4c1d2fac8a74c9e2957f30
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
drm/hyperv: Fix an error handling path in hyperv_vmbus_probe()

hyperv_setup_vram() calls vmbus_allocate_mmio(). This must be undone in
the error handling path of the probe, as already done in the remove
function.

Fixes: a0ab5abced55 ("drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/7dfa372af3e35fbb1d6f157183dfef2e4512d3be.1659297696.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/gpu/drm/hyperv/hyperv_drm_drv.c