]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ac97: Fix double free of ac97_codec_device
authorDing Xiang <dingxiang@cmss.chinamobile.com>
Tue, 23 Jul 2019 07:44:41 +0000 (15:44 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Jul 2019 12:16:11 +0000 (14:16 +0200)
commit3c3485a72a665f52a5f9222d0b818544dae900dc
tree6fab25bfa34c143d4dfa0bae26235b7cb674aae1
parent9a6242c9f136243b6c9672d3ba808916f20f7b76
ALSA: ac97: Fix double free of ac97_codec_device

put_device will call ac97_codec_release to free
ac97_codec_device and other resources, so remove the kfree
and other redundant code.

Fixes: 6eabf18a7f0a ("ALSA: ac97: add an ac97 bus")
Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ac97/bus.c