* [PATCH] [JFFS2] Correct symlink name too long error code
@ 2008-08-12 11:11 Adrian Hunter
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Hunter @ 2008-08-12 11:11 UTC (permalink / raw)
To: linux-mtd@lists.infradead.org
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.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();
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] [JFFS2] Correct symlink name too long error code
@ 2008-08-14 8:57 Adrian Hunter
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Hunter @ 2008-08-14 8:57 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-fsdevel
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.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();
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-14 8:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 11:11 [PATCH] [JFFS2] Correct symlink name too long error code Adrian Hunter
-- strict thread matches above, loose matches on Subject: below --
2008-08-14 8:57 Adrian Hunter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.