]> git.baikalelectronics.ru Git - kernel.git/commit
sound: Fix esoteric double free in the dummy sound driver.
authorDaniel THOMPSON <daniel.thompson@st.com>
Fri, 15 Aug 2008 09:53:38 +0000 (10:53 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 15 Aug 2008 10:38:14 +0000 (12:38 +0200)
commit7c95ee63e9cdbfdb167c97296106e8e8ebf8467b
tree354640ce67641af2632212edf6a29fb8e7a6fd9c
parent7338ad04e160d67727e3552c88b47b212cacd785
sound: Fix esoteric double free in the dummy sound driver.

The dummy driver uses runtime->private_free but still frees
its pcm structures on error paths.

This is esoteric because the error paths in question are
unreachable. Thus the bug is only a problem when someone
copies this code into other drivers.

Signed-off-by: Daniel R Thompson <daniel.thompson@st.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/drivers/dummy.c