Commit dccd87ac authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] Fix sound lockup - missing chardev init

Argh.  Missing initialization in char_dev.c - it's definitely
responsible for crap on unload.  Load side appears to be something else,
though...
parent 8395ebd9
......@@ -89,6 +89,8 @@ __register_chrdev_region(unsigned int major, unsigned int baseminor,
if (cd == NULL)
return ERR_PTR(-ENOMEM);
memset(cd, 0, sizeof(struct char_device_struct));
write_lock_irq(&chrdevs_lock);
/* temporary */
......
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