git: kernel - Fix crash when cdev is destroyed

Peeter Must peeterm at crater.dragonflybsd.org
Fri Dec 8 02:05:06 PST 2017


commit 758d6a9e7928c1c7ed970cdd8ea3554ae39cd238
Author: Peeter Must <karu.pruun at gmail.com>
Date:   Fri Dec 8 11:53:22 2017 +0200

    kernel - Fix crash when cdev is destroyed
    
    * If a device is destroyed while a userland program is blocked
      in a read() or device ioctl, the underlying node will be deleted.
      Returning EIO will prevent kernel from crashing.
    
    * This is a temporary hack until a better solution is found.

Summary of changes:
 sys/vfs/devfs/devfs_vnops.c | 9 +++++++++
 1 file changed, 9 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/758d6a9e7928c1c7ed970cdd8ea3554ae39cd238


-- 
DragonFly BSD source repository


More information about the Commits mailing list