git: kernel - Fix crash when cdev is destroyed
peeterm at crater.dragonflybsd.org
Fri Dec 8 02:05:06 PST 2017
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(+)
DragonFly BSD source repository
More information about the Commits