irmap: scan user-provided paths in order

Make the scan use the order of paths that came from the user.

Fixes: 4f2e4ab3be ("irmap: add --irmap-scan-path option"; 2015-09-16)
Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
Michał Mirosław 2023-08-01 22:39:59 +02:00 committed by Andrei Vagin
parent 2a131167bb
commit 69200bec76

View file

@ -501,6 +501,6 @@ int irmap_scan_path_add(char *path)
o->ir->path = path;
o->ir->nr_kids = -1;
list_add(&o->node, &opts.irmap_scan_paths);
list_add_tail(&o->node, &opts.irmap_scan_paths);
return 0;
}