ubifs: Fix xattr_names length in exit paths
authorRichard Weinberger <richard@nod.at>
Tue, 20 Sep 2016 08:08:30 +0000 (10:08 +0200)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 24 Nov 2016 02:31:24 +0000 (21:31 -0500)
commitc30d39a0de7c198ad6fd55403130b2d063b65312
treef31836e70ee2dac4a12437a7daf23399adab4dc1
parent1ef14328fbf61bf0ebdcc404395c771f401d3b2b
ubifs: Fix xattr_names length in exit paths

[ Upstream commit 843741c5778398ea67055067f4cc65ae6c80ca0e ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
fs/ubifs/xattr.c