Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: ALSA: hda - Enable mic mute hotkey and LEDs for an HP machine
@ 2015-01-10  9:31 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2015-01-10  9:31 UTC (permalink / raw)
  To: david.henningsson; +Cc: alsa-devel

Hello David Henningsson,

The patch 33f4acd3b214: "ALSA: hda - Enable mic mute hotkey and LEDs
for an HP machine" from Jan 7, 2015, leads to the following static
checker warning:

	sound/pci/hda/patch_realtek.c:3551 alc280_fixup_hp_gpio2_mic_hotkey()
	error: don't call input_free_device() after input_unregister_device()

sound/pci/hda/patch_realtek.c
  3545          switch (action) {
  3546          case HDA_FIXUP_ACT_PROBE:
  3547                  spec->init_amp = ALC_INIT_DEFAULT;
  3548                  break;
  3549          case HDA_FIXUP_ACT_FREE:
  3550                  input_unregister_device(spec->kb_dev);
  3551                  input_free_device(spec->kb_dev);

I think this is a double free.

  3552                  spec->kb_dev = NULL;
  3553          }
  3554  #endif
  3555  }

regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-10  9:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10  9:31 ALSA: hda - Enable mic mute hotkey and LEDs for an HP machine Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox