summaryrefslogtreecommitdiffstats
path: root/Manage.c
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-07-16 15:37:34 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-07-16 15:52:03 +0200
commitec72668a9768ad01b409b68f31f3ca7ffeeaab4e (patch)
treeabc91f889ad22d09fa5bf4d6903decdc0dc3d340 /Manage.c
parentmdadm: Manage.c fix coverity issues (diff)
downloadmdadm-ec72668a9768ad01b409b68f31f3ca7ffeeaab4e.tar.xz
mdadm-ec72668a9768ad01b409b68f31f3ca7ffeeaab4e.zip
Manage: fix is_remove_safe()
Fix for to make --set-faulty working. Fixes: 1b4b73fd535a ("mdadm: Manage.c fix coverity issues") Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Manage.c b/Manage.c
index aa5e80b2..f0304e1e 100644
--- a/Manage.c
+++ b/Manage.c
@@ -1333,7 +1333,7 @@ bool is_remove_safe(mdu_array_info_t *array, const int fd, char *devname, const
char *avail = xcalloc(array->raid_disks, sizeof(char));
- for (disk = mdi->devs; disk; disk = mdi->next) {
+ for (disk = mdi->devs; disk; disk = disk->next) {
if (disk->disk.raid_disk < 0)
continue;
if (!(disk->disk.state & (1 << MD_DISK_SYNC)))