[JFFS2] Correct symlink name too long error code
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Aug 14 05:59:02 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=bde86fec7c822b6009d3cfefc20b76b8d34716af
Commit: bde86fec7c822b6009d3cfefc20b76b8d34716af
Parent: 742c52533b05d8ae83c794bd6811100675b85ce5
Author: Adrian Hunter <ext-adrian.hunter at nokia.com>
AuthorDate: Thu Aug 14 11:57:45 2008 +0300
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Aug 14 09:58:29 2008 +0100
[JFFS2] Correct symlink name too long error code
Signed-off-by: Adrian Hunter <ext-adrian.hunter at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
fs/jffs2/dir.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c
index cd219ef..b1aaae8 100644
--- a/fs/jffs2/dir.c
+++ b/fs/jffs2/dir.c
@@ -311,7 +311,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char
/* FIXME: If you care. We'd need to use frags for the target
if it grows much more than this */
if (targetlen > 254)
- return -EINVAL;
+ return -ENAMETOOLONG;
ri = jffs2_alloc_raw_inode();
More information about the linux-mtd-cvs
mailing list