dont allow duplicate mixer knob names

This commit is contained in:
Alexandre Ratchov 2012-05-23 21:15:09 +02:00
parent 2fe4d9ed7e
commit 9cc45e62e2
1 changed files with 1 additions and 1 deletions

View File

@ -1350,7 +1350,7 @@ dev_mkslot(struct dev *d, char *who)
if (slot->ops == NULL)
continue;
if (strcmp(slot->name, name) == 0)
umap |= (1 << i);
umap |= (1 << slot->unit);
}
for (unit = 0; ; unit++) {
if (unit == CTL_NSLOT) {