vfio: platform: reset: calxedaxgmac: fix ioaddr leak
authorEric Auger <eric.auger@linaro.org>
Tue, 3 Nov 2015 18:12:19 +0000 (18:12 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 3 Nov 2015 19:55:06 +0000 (12:55 -0700)
commitdaac3bbedb8aba714a082d00e2292d462fa24397
tree575d31068914ecc0a7665576ca0949a0ce68b6ce
parent705e60bae3e09bedba0b2ec936bce3f799f46426
vfio: platform: reset: calxedaxgmac: fix ioaddr leak

In the current code the vfio_platform_region is copied on the stack.
As a consequence the ioaddr address is not iounmapped in the vfio
platform driver (vfio_platform_regions_cleanup). The patch uses the
pointer to the region instead.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c