Volumes: fix filesystem leak on error condition
If a filesystem associated to a volume cannot be mounted, it should
be deallocated.
@@ -111,6 +111,8 @@ closure_function(2, 2, void, volume_link,
msg_err("cannot mount filesystem: %v\n", s);
}
v->mounting = false;
+ if (!v->fs)
+ filesystem_release(fs);
closure_finish();
timm_dealloc(s);
if (!storage.mounting)
