diff options
| author | Takashi Iwai <tiwai@suse.de> | 2018-01-05 16:09:47 +0100 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2018-03-03 15:52:14 +0000 |
| commit | 8418d2262143ce2f1e7171c3fb1e0896a7a9d009 (patch) | |
| tree | c4ca1a25d6fea5392213cf225f72c0a70365b994 /include/linux/start_kernel.h | |
| parent | e6bc4d220161b2b7268465e94fbe3bc57b009ab2 (diff) | |
ALSA: aloop: Release cable upon open error path
commit 9685347aa0a5c2869058ca6ab79fd8e93084a67f upstream.
The aloop runtime object and its assignment in the cable are left even
when opening a substream fails. This doesn't mean any memory leak,
but it still keeps the invalid pointer that may be referred by the
another side of the cable spontaneously, which is a potential Oops
cause.
Clean up the cable assignment and the empty cable upon the error path
properly.
Fixes: 597603d615d2 ("ALSA: introduce the snd-aloop module for the PCM loopback")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions
