Fix NULL derefence in OSS MAUI driver.
PATCH 1/1 Fix NULL derefence in OSS MAUI driver.
Spotted with the source checker from Coverity.com.
Signed-off-by Dave Jones <[email protected]>
sound/oss/maui.c +1 -2
@@ -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