commit | 785e1afff17713b40ca7948b87020d1debcd5be5 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@google.com> | Wed Sep 05 15:23:57 2012 +0530 |
committer | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | Wed Oct 10 15:34:24 2012 +0530 |
tree | e15485eb90f40c38e246f4d2f7ba0a692b83bba8 | |
parent | cbc8ed8d2f6b89f33ef37705a39dda653bbffdb6 [diff] |
USB: gadget: f_audio_source: Fix use after free in audio_unbind When USB was disconnected, we were freeing our audio_dev struct in audio_unbind before the audio system had cleaned up, resulting in a hang in audio_pcm_close. We now statically allocate the audio_dev struct to avoid this problem. Change-Id: I58ad21eaa20dcf4aa74ee614ef3b6ed2c91d52a1 Signed-off-by: Mike Lockwood <lockwood@google.com> Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>