diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-07-08 08:23:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-27 09:47:38 -0700 |
commit | 180cb74b64ec9ef6e5d637a2c1479e3dfb55a1d3 (patch) | |
tree | 51fe2ebc69fa6741a1a8e507377f541c5a95bf5b /sound/core/control.c | |
parent | 248bfcb1c7d5d59e0994be02bf25652d8c04d072 (diff) | |
download | linux-stable-180cb74b64ec9ef6e5d637a2c1479e3dfb55a1d3.tar.gz linux-stable-180cb74b64ec9ef6e5d637a2c1479e3dfb55a1d3.tar.bz2 linux-stable-180cb74b64ec9ef6e5d637a2c1479e3dfb55a1d3.zip |
ALSA: pcm: Free chmap at PCM free callback, too
commit a8ff48cb70835f48de5703052760312019afea55 upstream.
The chmap ctls assigned to PCM streams are freed in the PCM disconnect
callback. However, since the disconnect callback isn't called when
the card gets freed before registering, the chmap ctls may still be
left assigned. They are eventually freed together with other ctls,
but it may cause an Oops at pcm_chmap_ctl_private_free(), as the
function refers to the assigned PCM stream, while the PCM objects have
been already freed beforehand.
The fix is to free the chmap ctls also at PCM free callback, not only
at PCM disconnect.
Reported-by: Laxminath Kasam <b_lkasam@codeaurora.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/core/control.c')
0 files changed, 0 insertions, 0 deletions