[PATCH 0/2] staging: most: prevent module removal if configfs directory is populated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
items/groups.
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(-)

-- 
2.7.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux