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

This commit is contained in:
mintsuki 2022-10-15 23:59:16 +02:00
parent d43dc03efa
commit a8e9328f63
2 changed files with 0 additions and 2 deletions

View File

@ -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) {

View File

@ -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));
}