[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>
This commit is contained in:
parent
742c52533b
commit
bde86fec7c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue