ubifs: Fix unlink code wrt. double hash lookups
authorRichard Weinberger <richard@nod.at>
Wed, 17 May 2017 08:36:46 +0000 (10:36 +0200)
committerRichard Weinberger <richard@nod.at>
Fri, 14 Jul 2017 20:49:06 +0000 (22:49 +0200)
commit781f675e2d7ec120e8c0803f88d7bf00fe3f0703
tree4537fe855e6ceb9f6290467d3c2e3f5d0481069b
parent59a74990f85bb372c9117e40c6cd27693b6df670
ubifs: Fix unlink code wrt. double hash lookups

When removing an encrypted file with a long name and without having
the key we have to be able to locate and remove the directory entry
via a double hash. This corner case was simply forgotten.

Fixes: 528e3d178f25 ("ubifs: Add full hash lookup support")
Reported-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/journal.c
fs/ubifs/tnc.c
fs/ubifs/ubifs.h