This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
jffs2 patch
- From: Knud Woehler <knud dot woehler at microplex dot de>
- To: ecos-patches <ecos-patches at sources dot redhat dot com>
- Date: Thu, 07 Oct 2004 15:10:35 +0200
- Subject: jffs2 patch
- Organization: MICROPLEX Printware AG
The attached patch corrects a bug in fs/jffs2/current/src/fs-ecos.c
(find_entry).
Knud
diff -Naur ecos.orig/packages/fs/jffs2/current/ChangeLog ecos.mpx/packages/fs/jffs2/current/ChangeLog
--- ecos.orig/packages/fs/jffs2/current/ChangeLog 2004-10-07 13:54:04.856671300 +0200
+++ ecos.mpx/packages/fs/jffs2/current/ChangeLog 2004-10-07 14:33:03.511886900 +0200
@@ -1,3 +1,8 @@
+2004-10-07 Knud Woehler <knud.woehler@microplex.de>
+
+ * src/fs-ecos.c (find_entry): jffs2_lookup may return error codes.
+ Check added.
+
2004-09-16 Dirk Eibach <eibach@gdsys.de>
2004-09-19 Andrew Lunn <andrew.lunn@ascom.ch>
diff -Naur ecos.orig/packages/fs/jffs2/current/src/fs-ecos.c ecos.mpx/packages/fs/jffs2/current/src/fs-ecos.c
--- ecos.orig/packages/fs/jffs2/current/src/fs-ecos.c 2004-10-07 13:53:18.667102100 +0200
+++ ecos.mpx/packages/fs/jffs2/current/src/fs-ecos.c 2004-09-21 16:31:37.417775300 +0200
@@ -305,6 +305,8 @@
if (d == NULL)
return ENOENT;
+ if (IS_ERR(d))
+ return -PTR_ERR(d);
// If it's a new directory inode, increase refcount on its parent
if (S_ISDIR(d->i_mode) && !d->i_parent) {