summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2007-02-24 23:43:04 +0100
committerKay Sievers <kay.sievers@suse.de>2007-02-24 23:43:04 +0100
commit915fde17387f7245164fbda21a0f5bbc185f7dc2 (patch)
treec27a81b01b98ee22be504d3e23b944910550a4f3 /udev_rules_parse.c
parent8f4bc5f1df8699761bdc09b954fc6c86aee0ce89 (diff)
update DRIVER== changes
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index 00b53285fa..8ef5ffee46 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -307,6 +307,11 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
}
if (strcasecmp(key, "DRIVER") == 0) {
+ if (operation != KEY_OP_MATCH &&
+ operation != KEY_OP_NOMATCH) {
+ err("invalid DRIVER operation");
+ goto invalid;
+ }
add_rule_key(rule, &rule->driver, operation, value);
valid = 1;
continue;