staging: erofs: xattr.c: avoid BUG_ON
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 13 Aug 2019 02:30:54 +0000 (10:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 10:50:57 +0000 (12:50 +0200)
commit9ddc7004f6aae68d8c3eee81b4b2a734d25c92e1
tree025e3d07292900ffa5033c7e759c455f753355bd
parent753a3c80b6afe55012ab49b076d30bfaf0266c46
staging: erofs: xattr.c: avoid BUG_ON

Kill all the remaining BUG_ON in EROFS:
 - one BUG_ON was used to detect xattr on-disk corruption,
   proper error handling should be added for it instead;
 - the other BUG_ONs are used to detect potential issues,
   use DBG_BUGON only in (eng) debugging version.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Link: https://lore.kernel.org/r/20190813023054.73126-3-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/xattr.c