diff options
| author | Cao Guanghui <caoguanghui@kylinos.cn> | 2026-06-17 14:00:53 +0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-07-08 22:33:35 +0200 |
| commit | 8d4dd2db7f4f3af0d3cd51111d050301c1f00a5c (patch) | |
| tree | 963a6cb5a4d5e632ae750e2239c34ba5c1892b27 /rust/zerocopy/git@git.tavy.me:linux-stable.git | |
| parent | 9ae672606c17891d90b282e3490b817620549599 (diff) | |
dm era: fix error code propagation in era_ctr()
era_ctr() replaces the actual error codes returned by dm_get_device()
and dm_set_target_max_io_len() with hardcoded -EINVAL, discarding
the real reason for the failure (e.g. -ENODEV, -ENOMEM). This makes
it harder for users to diagnose problems and is inconsistent with
other dm targets (dm-thin, dm-verity, dm-flakey, dm-ebs) which
propagate the original error.
Fix all three sites to return 'r' instead of -EINVAL.
Signed-off-by: Cao Guanghui <caoguanghui@kylinos.cn>
Reviewed-by: Su Yue <glass.su@suse.com>
Reviewed-by: Ming-Hung Tsai <mtsai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'rust/zerocopy/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
