* [PATCH] Fix NULL derefence in OSS MAUI driver.
@ 2004-09-01 15:51 Dave Jones
0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2004-09-01 15:51 UTC (permalink / raw)
To: linux-kernel
Spotted with the source checker from Coverity.com.
Signed-off-by: Dave Jones <davej@redhat.com>
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/sound/oss/maui.c linux-2.6/sound/oss/maui.c
--- bk-linus/sound/oss/maui.c 2004-08-28 21:57:25.000000000 +0100
+++ linux-2.6/sound/oss/maui.c 2004-09-01 13:31:21.000000000 +0100
@@ -383,9 +383,8 @@ static int __init probe_maui(struct addr
*/
synth = midi_devs[this_dev]->converter;
- synth->id = "MAUI";
-
if (synth != NULL) {
+ synth->id = "MAUI";
orig_load_patch = synth->load_patch;
synth->load_patch = &maui_load_patch;
} else
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-01 16:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 15:51 [PATCH] Fix NULL derefence in OSS MAUI driver Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®