ALSA: hda: Fix forget to free resource in error handling code path in hda_codec_drive...
authorWang YanQing <udknight@gmail.com>
Mon, 4 Sep 2017 15:17:09 +0000 (23:17 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Sep 2017 15:33:53 +0000 (17:33 +0200)
commit284b4c9289766c6294d4c6292aea565f78215b0e
treea38c9c32ba4a1d2ea7d10f2f37c557e7cc803c19
parentb06898d119f6b8dba7b318ad73558ce2d39161e8
ALSA: hda: Fix forget to free resource in error handling code path in hda_codec_driver_probe

When hda_codec_driver_probe meet error and return failure, we need
to free resource with patch_ops.free, or we will get resource leak.

Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_bind.c