[PATCH] Re: ALSA problems: sound lockup, modules, 2.5.70

From: viro (viro@parcelfarce.linux.theplanet.co.uk)
Date: Tue May 27 2003 - 13:55:03 EST


Argh. Missing initialization in char_dev.c - it's definitely
responsible for crap on unload. Load side appears to be something else,
though...

--- C70/fs/char_dev.c Mon May 26 22:21:39 2003
+++ linux/fs/char_dev.c Tue May 27 14:48:53 2003
@@ -89,6 +89,8 @@
if (cd == NULL)
return ERR_PTR(-ENOMEM);

+ memset(cd, 0, sizeof(struct char_device_struct));
+
write_lock_irq(&chrdevs_lock);

/* temporary */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/