mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Correctly check the return value of kldload() to determine whether an
error occurred.
This commit is contained in:
parent
78cf5f2fcd
commit
95269a8951
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134801
@ -103,7 +103,7 @@ main(int argc, char *argv[])
|
||||
#else
|
||||
error = getvfsbyname(SMBFS_VFSNAME, &vfc);
|
||||
if (error) {
|
||||
if (kldload(SMBFS_VFSNAME))
|
||||
if (kldload(SMBFS_VFSNAME) < 0)
|
||||
err(EX_OSERR, "kldload("SMBFS_VFSNAME")");
|
||||
error = getvfsbyname(SMBFS_VFSNAME, &vfc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user