Minor kernel changes.
This commit is contained in:
1 parent
0f0c5fcfc7
commit
15abe49f09
3 files changed
+31
No files matched your search
@@ -135,6 +135,13 @@ getdevice(char *path, char **subpath, struct vnode **startvn)
|
||||
|
||||
KASSERT(vfs_biglock_do_i_hold());
|
||||
|
||||
/*
|
||||
* Entirely empty filenames aren't legal.
|
||||
*/
|
||||
if (path[0] == 0) {
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Locate the first colon or slash.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user