看板 DFBSD_commit 關於我們 聯絡資訊
commit 176de024db39b6b6296d3c52d83a9a696cbb8b9f Author: Alex Hornung <ahornung@gmail.com> Date: Tue Aug 18 23:24:42 2009 +0100 DEVFS - fix possible panic on devfs_release_ops * under certain conditions on unloading a module it could happen that the memory containing the dev_ops was released before devfs_release_ ops could happen due to the asynchronous nature of destroy_dev. Fix this saving only a pointer to the ops and not using it to store anything but rather use a local tailq for reference counting the dev_ops. Summary of changes: sys/sys/devfs.h | 7 ++++++ sys/vfs/devfs/devfs_core.c | 50 ++++++++++++++++++++++++++++++++++++------- 2 files changed, 49 insertions(+), 8 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/176de024db39b6b6296d3c52d83a9a696cbb8b9f -- DragonFly BSD source repository