Patch to sb_mixer.c in cvs kernel

Daniel Drown (abob@psu.edu)
Sat, 28 Mar 1998 11:40:40 -0500 (EST)


Was playing with the cvs kernel, and anytime sb sound was configured, it
panic'ed upon boot. Looked at the source, and it seemed to be an obvious
problem. (hope I didn't break anything :)

[currently my email subscribed to linux-kernel's domain is messed up, cc
anything to abob@psu.edu if you want it to get to me ;]

--- sb_mixer.c Sat Mar 28 03:05:47 1998
+++ sb_mixer.c.new Sat Mar 28 03:09:45 1998
@@ -462,9 +462,9 @@
}

if (devc->submodel != SUBMDL_ALS007)
- memcpy ((char *) mixer_devs[num_mixers], (char *) &sb_mixer_operations, sizeof (struct mixer_operations));
+ memcpy ((char *) mixer_devs[m], (char *) &sb_mixer_operations, sizeof (struct mixer_operations));
else
- memcpy ((char *) mixer_devs[num_mixers], (char *) &als007_mixer_operations, sizeof (struct mixer_operations));
+ memcpy ((char *) mixer_devs[m], (char *) &als007_mixer_operations, sizeof (struct mixer_operations));

mixer_devs[m]->devc = devc;
devc->my_mixerdev = m;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu