ubifs: Fix xattr_names length in exit paths
authorRichard Weinberger <richard@nod.at>
Tue, 20 Sep 2016 08:08:30 +0000 (10:08 +0200)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:14:53 +0000 (13:14 +0000)
commitddabe9fe6cc60584900ea49daece5fad197c5d7d
tree0ca5b170ed9e1c25c87616163c5721033443390d
parent16add01e0e44c2d8d14a910b5b0c81a7ac073a9c
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: Willy Tarreau <w@1wt.eu>
fs/ubifs/xattr.c