summaryrefslogtreecommitdiff
path: root/fs/bcachefs/errcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/errcode.c')
-rw-r--r--fs/bcachefs/errcode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/errcode.c b/fs/bcachefs/errcode.c
index cc9ce0be356e..dc906fc9176f 100644
--- a/fs/bcachefs/errcode.c
+++ b/fs/bcachefs/errcode.c
@@ -23,6 +23,7 @@ static unsigned bch2_errcode_parents[] = {
const char *bch2_err_str(int err)
{
const char *errstr;
+
err = abs(err);
BUG_ON(err >= BCH_ERR_MAX);