kernel/sound/pci/hda/hda_bind.c
.. .. @@ -143,6 +143,7 @@ 143 143 144 144 error: 145 145 snd_hda_codec_cleanup_for_unbind(codec); 146 + codec->preset = NULL;146 147 return err; 147 148 } 148 149 .. .. @@ -159,6 +160,7 @@ 159 160 if (codec->patch_ops.free) 160 161 codec->patch_ops.free(codec); 161 162 snd_hda_codec_cleanup_for_unbind(codec); 163 + codec->preset = NULL;162 164 module_put(dev->driver->owner); 163 165 return 0; 164 166 }