diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-08-21 20:00:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 08:18:35 +0100 |
commit | 03a630fc2e5c7964ffc124dd4f094edb5722af3c (patch) | |
tree | 794a5b449358cc090f294e009c29024c9a6ce608 /include/linux/mm.h | |
parent | 81b83ca3e45b83e632b8063cd27bdb072ecfc135 (diff) | |
download | linux-stable-03a630fc2e5c7964ffc124dd4f094edb5722af3c.tar.gz linux-stable-03a630fc2e5c7964ffc124dd4f094edb5722af3c.tar.bz2 linux-stable-03a630fc2e5c7964ffc124dd4f094edb5722af3c.zip |
ALSA: line6: Fix memory leak at line6_init_pcm() error path
commit 1bc8d18c75fef3b478dbdfef722aae09e2a9fde7 upstream.
I forgot to release the allocated object at the early error path in
line6_init_pcm(). For addressing it, slightly shuffle the code so
that the PCM destructor (pcm->private_free) is assigned properly
before all error paths.
Fixes: 3450121997ce ("ALSA: line6: Fix write on zero-sized buffer")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[bwh: Backported to 4.4: adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/mm.h')
0 files changed, 0 insertions, 0 deletions