aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKalimochoAz <calimochoazucarado@gmail.com>2012-06-13 21:29:37 +0200
committerKalimochoAz <calimochoazucarado@gmail.com>2012-06-13 21:29:37 +0200
commit6303791f24e88b81b858fbacd26523ac4af8ef83 (patch)
treed75a11331a3b775d7db7e281c909b610fb9e03f6 /sound
parente5cf67e56e4f4e7dc90ea645f011d35ad5f7a271 (diff)
parent26a7895e70104811258cf023d06a21f92ab590c6 (diff)
downloadkernel_samsung_crespo-6303791f24e88b81b858fbacd26523ac4af8ef83.zip
kernel_samsung_crespo-6303791f24e88b81b858fbacd26523ac4af8ef83.tar.gz
kernel_samsung_crespo-6303791f24e88b81b858fbacd26523ac4af8ef83.tar.bz2
Merge branch 'linux-3.0.y' into HEAD
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/pcm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index b8dcbf4..506c0fa 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -670,6 +670,9 @@ static int snd_usb_pcm_check_knot(struct snd_pcm_runtime *runtime,
int count = 0, needs_knot = 0;
int err;
+ kfree(subs->rate_list.list);
+ subs->rate_list.list = NULL;
+
list_for_each_entry(fp, &subs->fmt_list, list) {
if (fp->rates & SNDRV_PCM_RATE_CONTINUOUS)
return 0;