commit | ac5cd774a6721d35e22e6349b96379cf6cab2376 | [log] [tgz] |
---|---|---|
author | Travis Geiselbrecht <geist@foobox.com> | Thu Apr 25 00:25:30 2024 -0700 |
committer | Travis Geiselbrecht <geist@foobox.com> | Thu Apr 25 00:25:30 2024 -0700 |
tree | d7ce19461322e6e9f0567c7385ca70f3ea7fb4d0 | |
parent | 7cda17edfcc20680e0b184207193a10521a01e66 [diff] |
[lib][fs][9p] fail mount gracefully if bdev isn't passed
diff --git a/lib/fs/9p/v9fs.c b/lib/fs/9p/v9fs.c index eaedee2..c4555fe 100644 --- a/lib/fs/9p/v9fs.c +++ b/lib/fs/9p/v9fs.c
@@ -91,6 +91,10 @@ LTRACEF("bdev (%p) cookie (%p)\n", dev, cookie); + if (!dev) { + return ERR_INVALID_ARGS; + } + v9fs_t *v9fs = calloc(1, sizeof(v9fs_t)); if (!v9fs)