OSDN Git Service

ubifs: Fix directory size calculation for symlinks
authorRichard Weinberger <richard@nod.at>
Mon, 11 Jun 2018 21:41:09 +0000 (23:41 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 14 Aug 2018 22:06:15 +0000 (00:06 +0200)
commit00ee8b60102862f4daf0814d12a2ea2744fc0b9b
tree9a06483280810a6e0be81e02db844110387a4839
parent94710cac0ef4ee177a63b5227664b38c95bbf703
ubifs: Fix directory size calculation for symlinks

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>
fs/ubifs/dir.c