config: conf_match should ignore devname when not set.
mapfile:RebuildMap calls conf_match with no devname, so we must be careful not to use it. Reported-by: Arkadiusz Miśkiewicz <arekm@maven.pl> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
1ca90aa648
commit
9f1b0f0f1e
2
config.c
2
config.c
|
@ -1045,7 +1045,7 @@ struct mddev_ident *conf_match(struct supertype *st,
|
|||
array_list->devname);
|
||||
continue;
|
||||
}
|
||||
if (array_list->devices &&
|
||||
if (array_list->devices && devname &&
|
||||
!match_oneof(array_list->devices, devname)) {
|
||||
if (verbose >= 2 && array_list->devname)
|
||||
fprintf(stderr, Name
|
||||
|
|
Loading…
Reference in New Issue