f42f79af16
The remoteproc core uses a static ida named rproc_dev_index for assigning an automatic index number to a registered remoteproc. The ida core may allocate some internal idr cache layers and ida bitmap upon any ida allocation, and all these layers are truely freed only upon the ida destruction. The rproc_dev_index ida is not destroyed at present, leading to a memory leak when using the remoteproc core as a module and atleast one rproc device is registered and unregistered. Fix this by invoking ida_destroy() in the remoteproc core module exit. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
da8xx_remoteproc.c | ||
omap_remoteproc.c | ||
omap_remoteproc.h | ||
remoteproc_core.c | ||
remoteproc_debugfs.c | ||
remoteproc_elf_loader.c | ||
remoteproc_internal.h | ||
remoteproc_virtio.c | ||
ste_modem_rproc.c | ||
wkup_m3_rproc.c |