lkml.org 
[lkml]   [2001]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectSet ownership correctly for MPU401 synth operations
Date
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
--- 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,
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.026 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site