[PATCH 0/2] staging: most: prevent module removal if configfs directory is populated
christian.gromm at microchip.com
Fri Nov 8 16:21:06 UTC 2019
Currently the core module does not hold any reference to component modules.
Hence, a component could be unloaded from the system anytime. Even if the
configuration interface is still being populated with configfs
User space then has no chance to fix the usage count by calling rmdir on
such a config item/group, as the respective directory does not exist
anymore. In this situation the core module cannot be unloaded anymore.
This patch set fixes this issue by holding a reference as long as the
configfs items exist.
Christian Gromm (2):
staging: most: configfs: move configfs subsystems to container struct
staging: most: block module removal while having active configfs items
drivers/staging/most/cdev/cdev.c | 1 +
drivers/staging/most/configfs.c | 118 +++++++++++++++++++++++++------------
drivers/staging/most/core.h | 1 +
drivers/staging/most/net/net.c | 1 +
drivers/staging/most/sound/sound.c | 1 +
drivers/staging/most/video/video.c | 1 +
6 files changed, 85 insertions(+), 38 deletions(-)
More information about the devel