]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c0eaf88298f1258f7297b01c93419966003edc1
tree025e3d07292900ffa5033c7e759c455f753355bd
parentdf9153f9b86b3ba8d7e9c06188332efd1d6e373b
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