summaryrefslogtreecommitdiff
path: root/sound/ppc
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-08-21 20:00:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-06 10:20:51 +0200
commit0cb49ca2dc8bf9ee50d1b2ceb42a86bb6c8dc15d (patch)
treed396d6f63c26250b51dc716ef9a578a8f923df0f /sound/ppc
parentbf147673368d1e60d3e94a7df517c848cda0ba33 (diff)
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") Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/ppc')
0 files changed, 0 insertions, 0 deletions