vfio: platform: Fix reset module leak in error path
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 11 Apr 2018 09:15:48 +0000 (11:15 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 8 Jun 2018 16:24:20 +0000 (10:24 -0600)
commit28a68387888997e8a7fa57940ea5d55f2e16b594
tree96851056a21bfba4ea04af2f8ff3ce3c4b51b66e
parenta5e6e6505f38f7bce1d3576503a2bffff3fa888c
vfio: platform: Fix reset module leak in error path

If the IOMMU group setup fails, the reset module is not released.

Fixes: b5add544d677d363 ("vfio, platform: make reset driver a requirement by default")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c