mirror of https://gitee.com/openkylin/linux.git
1b4bb2eaa9
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:
|
||
---|---|---|
.. | ||
reset | ||
Kconfig | ||
Makefile | ||
vfio_amba.c | ||
vfio_platform.c | ||
vfio_platform_common.c | ||
vfio_platform_irq.c | ||
vfio_platform_private.h |