:: commit a8e9328f63b98b0de285b1946970fd9c1dbf84a0

mintsuki <mintsuki@protonmail.com> — 2022-10-15 21:59

parents: d43dc03efa

fs: Add fix from 1da478d5 for 4.x dropped filesystems

diff --git a/common/fs/echfs.s2.c b/common/fs/echfs.s2.c
index 456ede38..5718b161 100644
--- a/common/fs/echfs.s2.c
+++ b/common/fs/echfs.s2.c
@@ -87,7 +87,6 @@ static void echfs_close(struct file_handle *file) {
     struct echfs_file_handle *f = file->fd;
     pmm_free(f->alloc_map, f->file_block_count * sizeof(uint64_t));
     pmm_free(f, sizeof(struct echfs_file_handle));
-    pmm_free(file, sizeof(struct file_handle));
 }
 
 struct file_handle *echfs_open(struct volume *part, const char *path) {
diff --git a/common/fs/ntfs.s2.c b/common/fs/ntfs.s2.c
index ad195175..55793b13 100644
--- a/common/fs/ntfs.s2.c
+++ b/common/fs/ntfs.s2.c
@@ -825,5 +825,4 @@ static int ntfs_read(struct file_handle *handle, void *buf, uint64_t loc, uint64
 
 static void ntfs_close(struct file_handle *file) {
     pmm_free(file->fd, sizeof(struct ntfs_file_handle));
-    pmm_free(file, sizeof(struct file_handle));
 }
tab: 248 wrap: offon