This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/media_tree.git tree:
Subject: [media] sound/usb: fix to release stream resources from media_snd_device_delete() Author: Shuah Khan <[email protected]> Date: Fri Mar 18 23:50:31 2016 -0300 Fix to release stream resources from media_snd_device_delete() before media device is unregistered. Without this change, stream resource free is attempted after the media device is unregistered which would result in use-after-free errors. Signed-off-by: Shuah Khan <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> sound/usb/media.c | 7 +++++++ 1 file changed, 7 insertions(+) --- http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=4cc51b3ee925da9b0ecc89e9f812973bcc95ec25 diff --git a/sound/usb/media.c b/sound/usb/media.c index 0d03773b4c67..479518ac4dd6 100644 --- a/sound/usb/media.c +++ b/sound/usb/media.c @@ -299,6 +299,13 @@ int media_snd_device_create(struct snd_usb_audio *chip, void media_snd_device_delete(struct snd_usb_audio *chip) { struct media_device *mdev = chip->media_dev; + struct snd_usb_stream *stream; + + /* release resources */ + list_for_each_entry(stream, &chip->pcm_list, list) { + media_snd_stream_delete(&stream->substream[0]); + media_snd_stream_delete(&stream->substream[1]); + } media_snd_mixer_delete(chip); _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
