git: DEVFS - fix possible panic on devfs_release_ops

看板DFBSD_commit作者時間16年前 (2009/08/19 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1AYvKZ_A (DFBSD_commit)