]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ubifs: Fix directory size calculation for symlinks
authorRichard Weinberger <richard@nod.at>
Mon, 11 Jun 2018 21:41:09 +0000 (23:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 08:32:39 +0000 (10:32 +0200)
commitf9b28f9a2b7fce5c8b4383362844bc8469c1f41b
tree60a49f440e1b7aea7075ec4ef4c6169ecf3bc129
parentcef393ce9aea9e0a0804da9cbabb4bec78bd29fa
ubifs: Fix directory size calculation for symlinks

commit 00ee8b60102862f4daf0814d12a2ea2744fc0b9b upstream.

We have to account the name of the symlink and not the target length.

Fixes: ca7f85be8d6c ("ubifs: Add support for encrypted symlinks")
Cc: <stable@vger.kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ubifs/dir.c