svn commit: r345419 - projects/fuse2/sys/fs/fuse
Alan Somers
asomers at FreeBSD.org
Fri Mar 22 17:53:14 UTC 2019
Author: asomers
Date: Fri Mar 22 17:53:13 2019
New Revision: 345419
URL: https://svnweb.freebsd.org/changeset/base/345419
Log:
fusefs: fix a panic on mount
Don't page fault if the file descriptor provided with "-o fd" is invalid.
Sponsored by: The FreeBSD Foundation
Modified:
projects/fuse2/sys/fs/fuse/fuse_vfsops.c
Modified: projects/fuse2/sys/fs/fuse/fuse_vfsops.c
==============================================================================
--- projects/fuse2/sys/fs/fuse/fuse_vfsops.c Fri Mar 22 17:44:47 2019 (r345418)
+++ projects/fuse2/sys/fs/fuse/fuse_vfsops.c Fri Mar 22 17:53:13 2019 (r345419)
@@ -225,7 +225,7 @@ fuse_vfsop_mount(struct mount *mp)
size_t len;
struct cdev *fdev;
- struct fuse_data *data;
+ struct fuse_data *data = NULL;
struct thread *td;
struct file *fp, *fptmp;
char *fspec, *subtype;
@@ -361,7 +361,7 @@ fuse_vfsop_mount(struct mount *mp)
out:
if (err) {
FUSE_LOCK();
- if (data->mp == mp) {
+ if (data && data->mp == mp) {
/*
* Destroy device only if we acquired reference to
* it
More information about the svn-src-projects
mailing list