Skip to content

Commit bde86fe

Browse files
Adrian HunterDavid Woodhouse
authored andcommitted
[JFFS2] Correct symlink name too long error code
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 742c525 commit bde86fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/jffs2/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char
311311
/* FIXME: If you care. We'd need to use frags for the target
312312
if it grows much more than this */
313313
if (targetlen > 254)
314-
return -EINVAL;
314+
return -ENAMETOOLONG;
315315

316316
ri = jffs2_alloc_raw_inode();
317317

0 commit comments

Comments
 (0)