[PATCH] operate on the rules in the order they are in the config file (within the rule type)
This commit is contained in:
parent
7f2ea6a382
commit
8cf7ebe8cd
|
@ -145,7 +145,7 @@ static int add_dev(struct config_device *new_dev)
|
||||||
if (!tmp_dev)
|
if (!tmp_dev)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
memcpy(tmp_dev, new_dev, sizeof(*tmp_dev));
|
memcpy(tmp_dev, new_dev, sizeof(*tmp_dev));
|
||||||
list_add(&tmp_dev->node, &config_device_list);
|
list_add_tail(&tmp_dev->node, &config_device_list);
|
||||||
//dump_dev(tmp_dev);
|
//dump_dev(tmp_dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue