Bug 18503

Summary: check for error return from vfs_allocate_syncvnode()
Product: Base System Reporter: mellon <mellon>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description mellon 2000-05-11 17:20:00 UTC
Current code of mount() in vfs_syscalls.c does not check,
erroneously, for error return from vfs_allocate_syncvnode().
The failure scenario is very unlikely to happen, however
(it'll only fail if it can't obtain a vnode). The attached
fix will prudently refrain from ignoring the return value.
Comment 1 Colin Percival freebsd_committer freebsd_triage 2004-02-18 05:25:45 UTC
State Changed
From-To: open->closed

Fixed, thanks.