android_kernel_motorola_sm6225/drivers/vfio/platform
James Morse 1b4bb2eaa9 vfio/platform: store mapped memory in region, instead of an on-stack copy
vfio_platform_{read,write}_mmio() call ioremap_nocache() to map
a region of io memory, which they store in struct vfio_platform_region to
be eventually re-used, or unmapped by vfio_platform_regions_cleanup().

These functions receive a copy of their struct vfio_platform_region
argument on the stack - so these mapped areas are always allocated, and
always leaked.

Pass this argument as a pointer instead.

Fixes: 6e3f264560 "vfio/platform: read and write support for the device fd"
Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Tested-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2015-11-03 12:54:00 -07:00
..
reset VFIO: platform: Calxeda xgmac reset module 2015-06-22 09:35:38 -06:00
Kconfig VFIO: platform: enable ARM64 build 2015-06-22 09:35:47 -06:00
Makefile VFIO: platform: Calxeda xgmac reset module 2015-06-22 09:35:38 -06:00
vfio_amba.c vfio: amba: VFIO support for AMBA devices 2015-03-16 14:08:44 -06:00
vfio_platform.c
vfio_platform_common.c vfio/platform: store mapped memory in region, instead of an on-stack copy 2015-11-03 12:54:00 -07:00
vfio_platform_irq.c VFIO: platform: clear IRQ_NOAUTOEN when de-assigning the IRQ 2015-10-27 15:02:53 -06:00
vfio_platform_private.h VFIO: platform: add reset callback 2015-06-22 09:35:22 -06:00