ubifs: Fix xattr_names length in exit paths
authorRichard Weinberger <richard@nod.at>
Tue, 20 Sep 2016 08:08:30 +0000 (10:08 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:50:54 +0000 (03:50 +0000)
commit72ee01777f49f472f0355ba8dfc32b1570a68df2
tree77e498c4dc3a485903b42a2056f658477ef6e4b2
parent7783166798fa713a278e81afa2712d24bbfbfd13
ubifs: Fix xattr_names length in exit paths

commit 843741c5778398ea67055067f4cc65ae6c80ca0e upstream.

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

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ubifs/xattr.c