DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: DEVFS - fix possible panic on devfs_release_ops


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Aug 2009 22:33:33 -0700 (PDT)

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



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