diff for duplicates of <20110207172519.GI4384@bicker> diff --git a/a/1.txt b/N1/1.txt index b1b7585..e530db9 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -12,15 +12,15 @@ index 705c88e..ba62c74 100644 @@ -493,13 +493,12 @@ static int usb6fire_pcm_prepare(struct snd_pcm_substream *alsa_sub) sub->period_off = 0; - if (rt->stream_state == STREAM_DISABLED) { + if (rt->stream_state = STREAM_DISABLED) { - rt->rate = -1; for (i = 0; i < ARRAY_SIZE(rates); i++) - if (alsa_rt->rate == rates[i]) { + if (alsa_rt->rate = rates[i]) { rt->rate = i; break; } -- if (rt->rate == -1) { -+ if (i == ARRAY_SIZE(rates)) { +- if (rt->rate = -1) { ++ if (i = ARRAY_SIZE(rates)) { mutex_unlock(&rt->stream_mutex); snd_printk("invalid rate %d in prepare.\n", alsa_rt->rate); diff --git a/a/content_digest b/N1/content_digest index b7ae426..9984f0e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <error27@gmail.com>\0" "Subject\0[patch] USB: 6fire: signedness bug in usb6fire_pcm_prepare()\0" - "Date\0Mon, 7 Feb 2011 20:25:19 +0300\0" + "Date\0Mon, 07 Feb 2011 17:25:19 +0000\0" "To\0Jaroslav Kysela <perex@perex.cz>\0" "Cc\0Takashi Iwai <tiwai@suse.de>" alsa-devel@alsa-project.org @@ -22,17 +22,17 @@ "@@ -493,13 +493,12 @@ static int usb6fire_pcm_prepare(struct snd_pcm_substream *alsa_sub)\n" " \tsub->period_off = 0;\n" " \n" - " \tif (rt->stream_state == STREAM_DISABLED) {\n" + " \tif (rt->stream_state = STREAM_DISABLED) {\n" "-\t\trt->rate = -1;\n" " \t\tfor (i = 0; i < ARRAY_SIZE(rates); i++)\n" - " \t\t\tif (alsa_rt->rate == rates[i]) {\n" + " \t\t\tif (alsa_rt->rate = rates[i]) {\n" " \t\t\t\trt->rate = i;\n" " \t\t\t\tbreak;\n" " \t\t\t}\n" - "-\t\tif (rt->rate == -1) {\n" - "+\t\tif (i == ARRAY_SIZE(rates)) {\n" + "-\t\tif (rt->rate = -1) {\n" + "+\t\tif (i = ARRAY_SIZE(rates)) {\n" " \t\t\tmutex_unlock(&rt->stream_mutex);\n" " \t\t\tsnd_printk(\"invalid rate %d in prepare.\\n\",\n" " \t\t\t\t\talsa_rt->rate);" -2cba39ff930bf4375952f1c93a2154de3757e7638663ab8f7204d1b070e03aaa +ba91ca04e5beb28a24ffe6b946b85122daf312b818713f50125ae062dd9bfead
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.