Commit a857acfe authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Fix NULL derefence in OSS MAUI driver.

Spotted with the source checker from Coverity.com.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent db578ecc
......@@ -383,9 +383,8 @@ static int __init probe_maui(struct address_info *hw_config)
*/
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment