aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2015-01-10 07:02:22 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-11 05:26:12 -0500
commit624afe4dc9a08992b200046dfe8a61f19bab74ab (patch)
tree3e75876553979df7349491e6ab56a0aeb94923e3 /sound
parente9f49369722bd7dd53f90467196df4b952eac1b6 (diff)
ALSA: hda - fixup input_free_device called after input_unregister_device
Input_unregister_device will internally free the device, so input_free_device should not be called. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 09d213142633..a50e15e166c6 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -3548,7 +3548,6 @@ static void alc280_fixup_hp_gpio2_mic_hotkey(struct hda_codec *codec,
3548 break; 3548 break;
3549 case HDA_FIXUP_ACT_FREE: 3549 case HDA_FIXUP_ACT_FREE:
3550 input_unregister_device(spec->kb_dev); 3550 input_unregister_device(spec->kb_dev);
3551 input_free_device(spec->kb_dev);
3552 spec->kb_dev = NULL; 3551 spec->kb_dev = NULL;
3553 } 3552 }
3554#endif 3553#endif