summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti/if_ti.c
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2003-08-05 00:26:51 +0000
committeriedowse <iedowse@FreeBSD.org>2003-08-05 00:26:51 +0000
commit7bf5fa9caf39cc731d7d0a4284ae21ba234fdd96 (patch)
treeaae1fa32436c87d4f5c656bbc8d3353ec33df6d8 /sys/dev/ti/if_ti.c
parentc5cc3acad05c083c81ec2feefaf72a6e6c91eca4 (diff)
downloadFreeBSD-src-7bf5fa9caf39cc731d7d0a4284ae21ba234fdd96.zip
FreeBSD-src-7bf5fa9caf39cc731d7d0a4284ae21ba234fdd96.tar.gz
In the mknod(), mkfifo(), link(), symlink() and undelete() syscalls,
use vrele() instead of vput() on the parent directory vnode returned by namei() in the case where it is equal to the target vnode. This handles namei()'s somewhat strange (but documented) behaviour of not locking either vnode when the two vnodes are equal and LOCKPARENT but not LOCKLEAF is specified. Note that since a vnode double-unlock is not currently fatal, these coding errors were effectively harmless. Spotted by: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de> Reviewed by: mckusick
Diffstat (limited to 'sys/dev/ti/if_ti.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud