]> www.infradead.org Git - users/jedix/linux-maple.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>
Sat, 29 Dec 2018 12:39:07 +0000 (13:39 +0100)
commit56303ade45046b4470eaa47181d83e648d768b2d
treef46c9190f3febe2da9a81ead1719c7d23457dd6c
parent2e5981029574928d073f381c2b446c6750d84bd1
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: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ubifs/dir.c