diff options
author | Dave Chinner <david@fromorbit.com> | 2016-07-20 11:53:35 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-07-20 11:53:35 +1000 |
commit | bbfeb6141fcc8e2aea47b2f235cc8cc8ffb4a293 (patch) | |
tree | 65fc831b4e915412ac4baf0fd72525eb05d48aa8 /fs/xfs/xfs_sysfs.c | |
parent | f63716175c0730c2f29b4591146f0045cfcaa8dc (diff) | |
parent | 9c7504aa72b6e2104ba6dcef518c15672ec51175 (diff) |
Merge branch 'xfs-4.8-buf-fixes' into for-next
Diffstat (limited to 'fs/xfs/xfs_sysfs.c')
-rw-r--r-- | fs/xfs/xfs_sysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_sysfs.c b/fs/xfs/xfs_sysfs.c index 4c2c55086208..79cfd3fc5324 100644 --- a/fs/xfs/xfs_sysfs.c +++ b/fs/xfs/xfs_sysfs.c @@ -634,6 +634,9 @@ xfs_error_get_cfg( { struct xfs_error_cfg *cfg; + if (error < 0) + error = -error; + switch (error) { case EIO: cfg = &mp->m_error_cfg[error_class][XFS_ERR_EIO]; |