hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/sound/pci/hda/hda_bind.c
....@@ -143,6 +143,7 @@
143143
144144 error:
145145 snd_hda_codec_cleanup_for_unbind(codec);
146
+ codec->preset = NULL;
146147 return err;
147148 }
148149
....@@ -159,6 +160,7 @@
159160 if (codec->patch_ops.free)
160161 codec->patch_ops.free(codec);
161162 snd_hda_codec_cleanup_for_unbind(codec);
163
+ codec->preset = NULL;
162164 module_put(dev->driver->owner);
163165 return 0;
164166 }