[Devel] [PATCH RHEL9 COMMIT] dm-ploop: Fix positive error code in ploop_prepare_reloc_index_wb()
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Dec 27 15:04:17 MSK 2021
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.37
------>
commit b33eeedd5cf8ee1a068d5c9d0e7e944f05934445
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Mon Dec 27 15:04:17 2021 +0300
dm-ploop: Fix positive error code in ploop_prepare_reloc_index_wb()
Later we export this error code to .message caller,
and this is a problem, since positive return values
are reserved.
Found in scope of https://jira.sw.ru/browse/PSBM-136140
To_merge: 93f9012782e5 ("dm-ploop: Add ploop target driver")
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/md/dm-ploop-map.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index 3873b7000953..251ac03198fd 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1911,5 +1911,5 @@ int ploop_prepare_reloc_index_wb(struct ploop *ploop,
out_reset:
ploop_break_bat_update(ploop, md);
out_error:
- return errno_to_blk_status(err);
+ return err;
}
More information about the Devel
mailing list