Displaying 2 results from an estimated 2 matches for "c5a1432".
2011 Aug 04
0
[PATCH] fstype: fix possible null deref in check_for_modules()
...ding ko.gz support.
Cc: Karel Zak <kzak at redhat.com>
Signed-off-by: maximilian attems <max at stro.at>
---
usr/kinit/fstype/fstype.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c
index 2e26c9a..c5a1432 100644
--- a/usr/kinit/fstype/fstype.c
+++ b/usr/kinit/fstype/fstype.c
@@ -171,13 +171,13 @@ static int check_for_modules(const char *fs_name)
return 0;
while (fgets(buf, sizeof(buf), f)) {
cp = strchr(buf, ':');
- if (cp != NULL)
- *cp = 0;
- else
+ if (cp == NULL)
continu...
2014 Feb 24
0
[PATCH] fstype: f2fs support
...uuid for volume */
+ __le16 volume_name[512]; /* volume name */
+ __le32 extension_count; /* # of extensions below */
+ __u8 extension_list[F2FS_MAX_EXTENSION][8]; /* extension array */
+} __packed;
+
+#endif /* F2FS_FS_H */
diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c
index c5a1432..34d633a 100644
--- a/usr/kinit/fstype/fstype.c
+++ b/usr/kinit/fstype/fstype.c
@@ -37,6 +37,7 @@
#include "romfs_fs.h"
#include "squashfs_fs.h"
#include "xfs_sb.h"
+#include "f2fs_fs.h"
/*
* Slightly cleaned up version of jfs_superblock to
@@ -472,6...