mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
ceph: decoding error in ceph_update_snap_realm should return -EIO
Currently ceph_update_snap_realm returns -EINVAL when it hits a decoding error, which is the wrong error code. -EINVAL implies that the user gave us a bogus argument to a syscall or something similar. -EIO is more descriptive when we hit a decoding error. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
903f4fec78
commit
f3fd3ea6a2
@ -791,7 +791,7 @@ more:
|
||||
return 0;
|
||||
|
||||
bad:
|
||||
err = -EINVAL;
|
||||
err = -EIO;
|
||||
fail:
|
||||
if (realm && !IS_ERR(realm))
|
||||
ceph_put_snap_realm(mdsc, realm);
|
||||
|
Loading…
Reference in New Issue
Block a user