Fix an endless recursion and double fault which could occur when accessing
commit3ea4f8fe707f9f90013c5890c267343c6b382d59
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 5 Sep 2008 23:27:12 +0000 (5 23:27 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 5 Sep 2008 23:27:12 +0000 (5 23:27 +0000)
tree1fb5c1951d2c7fa60be5284da7209e690e386d40
parent306a071492e3c0f62376683df815286c3a101dad
Fix an endless recursion and double fault which could occur when accessing
a filesystem mounted via nullfs where the mount itself used a path through
another nullfs filesystem.

The forwarding nullm_vfs mount pointer must be set to the actual mount
point and not the governing nullfs.  Any read-only status from the governing
nullfs mount will still be inherited.
sys/vfs/nullfs/null_vfsops.c
sys/vfs/nullfs/null_vnops.c