Skip to content

Commit

Permalink
[JFFS2] Correct symlink name too long error code
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Adrian Hunter authored and David Woodhouse committed Aug 14, 2008
1 parent 742c525 commit bde86fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jffs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit bde86fe

Please sign in to comment.