Commit a397214b authored by Andrew Morton's avatar Andrew Morton Committed by Patrick Mochel

[PATCH] sound/core comparison fix

From: Hal Duston <hduston@speedscript.com>

This fixes a bug that appears to have crept in between 2.5.69-mm1 and
2.5.69-mm2 with the "switch most remaining drivers over to devfs_mk_bdev"
patch
parent 8e8804a5
...@@ -1080,7 +1080,7 @@ snd_info_entry_t *snd_info_create_device(const char *name, unsigned int number, ...@@ -1080,7 +1080,7 @@ snd_info_entry_t *snd_info_create_device(const char *name, unsigned int number,
entry->p = p; entry->p = p;
up(&info_mutex); up(&info_mutex);
if (strncmp(name, "controlC", 8) == 0) /* created in sound.c */ if (strncmp(name, "controlC", 8) != 0) /* created in sound.c */
devfs_mk_cdev(MKDEV(_major, minor), mode, "snd/%s", name); devfs_mk_cdev(MKDEV(_major, minor), mode, "snd/%s", name);
return entry; return entry;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment