Hi,
This patch makes the mpu401_synth_operations structure respect
attach_mpu401()'s "owner" parameter. This should prevent more sound
module from being accidentally unloaded.
Cheers,
Chris
--%--multipart-mixed-boundary-1.12249.979084010--%
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: ASCII text
Content-Disposition: attachment; filename="mpu401-3.diff"
--- linux-vanilla/drivers/sound/mpu401.c Fri Jan 5 23:14:08 2001
+++ linux-2.4.0-ac3/drivers/sound/mpu401.c Tue Jan 9 23:41:43 2001
@@ -1030,6 +1030,8 @@
(char *) &mpu401_synth_proto,
sizeof(struct synth_operations));
}
+ if (owner)
+ mpu401_synth_operations[m]->owner = owner;
memcpy((char *) &mpu401_midi_operations[m],
(char *) &mpu401_midi_proto,
--%--multipart-mixed-boundary-1.12249.979084010--%--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/