]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Fix xattr_names length in exit paths
authorRichard Weinberger <richard@nod.at>
Tue, 20 Sep 2016 08:08:30 +0000 (10:08 +0200)
committerRichard Weinberger <richard@nod.at>
Wed, 19 Oct 2016 22:05:54 +0000 (00:05 +0200)
commit6ebea58c1b07bfd11b0a3c5b35a3d7a9c47cca7e
treed03c20663d763214350f6e40e418513c2dc17a6c
parent4142b608570780db44224c9d63ef0b356a9daf6c
ubifs: Fix xattr_names length in exit paths

When the operation fails we also have to undo the changes
we made to ->xattr_names. Otherwise listxattr() will report
wrong lengths.

Cc: stable@vger.kernel.org
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/xattr.c