Fix a NULL-pointer dereference when calling open() on a cloned device with write
authoranton <anton@openbsd.org>
Mon, 30 Jul 2018 17:21:37 +0000 (17:21 +0000)
committeranton <anton@openbsd.org>
Mon, 30 Jul 2018 17:21:37 +0000 (17:21 +0000)
commit43ae0e2115f5b86d1be2559c86e9b7163c7423ec
tree01b397db2a12470e65e35f5ec9179d1a2c9546c5
parenta3ed4ecbe6f049210643958aac311a39219a5f90
Fix a NULL-pointer dereference when calling open() on a cloned device with write
permissions and the flags include O_TRUNC|O_SHLOCK.

ok deraadt@
sys/kern/vfs_syscalls.c