- Fix memleak in ntfs_attr_pwrite
- Update layout.h a bit to be a kernel driver like.edge.strict_endians
parent
6e1106fc79
commit
b1dfa2b306
|
@ -27,7 +27,8 @@
|
|||
#include "support.h"
|
||||
|
||||
/* The NTFS oem_id */
|
||||
#define magicNTFS const_cpu_to_le64(0x202020205346544e) /* "NTFS " */
|
||||
#define magicNTFS const_cpu_to_le64(0x202020205346544e) /* "NTFS " */
|
||||
#define NTFS_SB_MAGIC 0x5346544e /* 'NTFS' */
|
||||
|
||||
/*
|
||||
* Location of bootsector on partition:
|
||||
|
@ -1003,7 +1004,7 @@ typedef struct {
|
|||
/*
|
||||
* The maximum allowed length for a file name.
|
||||
*/
|
||||
#define MAXIMUM_FILE_NAME_LENGTH 255
|
||||
#define NTFS_MAX_NAME_LEN 255
|
||||
|
||||
/*
|
||||
* Possible namespaces for filenames in ntfs (8-bit).
|
||||
|
|
|
@ -1212,9 +1212,11 @@ s64 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count, void *b)
|
|||
eo = errno;
|
||||
Dprintf("%s(): Failed to zero area.\n",
|
||||
__FUNCTION__);
|
||||
free(buf);
|
||||
errno = eo;
|
||||
goto err_out;
|
||||
}
|
||||
free(buf);
|
||||
}
|
||||
if (rl->vcn < cur_vcn) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue