Commit 624afe4d authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e9f49369
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3548,7 +3548,6 @@ static void alc280_fixup_hp_gpio2_mic_hotkey(struct hda_codec *codec,
		break;
	case HDA_FIXUP_ACT_FREE:
		input_unregister_device(spec->kb_dev);
		input_free_device(spec->kb_dev);
		spec->kb_dev = NULL;
	}
#endif