diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-07-16 15:37:34 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-07-16 15:52:03 +0200 |
commit | ec72668a9768ad01b409b68f31f3ca7ffeeaab4e (patch) | |
tree | abc91f889ad22d09fa5bf4d6903decdc0dc3d340 /Manage.c | |
parent | mdadm: Manage.c fix coverity issues (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))) |