aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/mixer.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-08-21 20:00:02 +0200
committerTakashi Iwai <tiwai@suse.de>2019-08-21 20:00:02 +0200
commit1bc8d18c75fef3b478dbdfef722aae09e2a9fde7 (patch)
tree2929483196823ee8c65f0148f5a27d486a961fdb /sound/usb/mixer.c
parentALSA: usb-audio: Fix invalid NULL check in snd_emuusb_set_samplerate() (diff)
downloadlinux-dev-1bc8d18c75fef3b478dbdfef722aae09e2a9fde7.tar.xz
linux-dev-1bc8d18c75fef3b478dbdfef722aae09e2a9fde7.zip
ALSA: line6: Fix memory leak at line6_init_pcm() error path
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions