From: Chris Rankin <rankinc@zip.com.au>
To: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Set ownership correctly for MPU401 synth operations
Date: Tue, 9 Jan 2001 23:46:50 +0000 (GMT) [thread overview]
Message-ID: <200101092346.f09Nkp212258@wittsend.ukgateway.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
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
[-- Attachment #2: ASCII text --]
[-- Type: text/plain, Size: 378 bytes --]
--- 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,
reply other threads:[~2001-01-09 23:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200101092346.f09Nkp212258@wittsend.ukgateway.net \
--to=rankinc@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).