fs.mitm: fix data abort

This commit is contained in:
Michael Scire 2019-04-22 03:42:20 -07:00
parent be4ca7eee5
commit 9f972831cc

View File

@ -270,7 +270,8 @@ Result FsMitmService::OpenBisStorage(Out<std::shared_ptr<IStorageInterface>> out
} else {
/* Do not allow non-sysmodules to read *or* write CAL0. */
fsStorageClose(&bis_storage);
return ResultFsPermissionDenied;
rc = ResultFsPermissionDenied;
return rc;
}
} else {
if (is_sysmodule || has_bis_write_flag) {