]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If fifo_open() is called with a negative file descriptor, return EINVAL
authorRobert Watson <rwatson@FreeBSD.org>
Tue, 14 Mar 2006 19:29:45 +0000 (19:29 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Tue, 14 Mar 2006 19:29:45 +0000 (19:29 +0000)
commit945a519a23369e9ab75639f2c58f4ca6aa56d07f
tree4a92fd31d5889e855f0774e0265f95da7e9dca29
parent31ae0caec110ae0fe2021db88354bd0cd9ee53bd
If fifo_open() is called with a negative file descriptor, return EINVAL
rather than panicking later.  This can occur if the kernel calls
vn_open() on a fifo, as there will be no associated file descriptor,
and therefore the file descriptor operations cannot be modified to
point to the fifo operation set.

MFC after: 3 days
Reported by: Martin <nakal at nurfuerspam dot de>
PR: 94278
sys/fs/fifofs/fifo_vnops.c