From: Manu Abraham <abraham.manu@gmail.com>
To: Linux Media Mailing List <linux-media@vger.kernel.org>,
Roel Kluin via Mercurial <roel.kluin@gmail.com>,
akpm@linux-foundation.org, mchehab@redhat.com
Subject: Re: [linuxtv-commits] [hg:v4l-dvb] DVB: negative internal->sub_range won't get noticed
Date: Thu, 29 Jan 2009 14:46:42 +0400 [thread overview]
Message-ID: <49818912.7000109@gmail.com> (raw)
In-Reply-To: <E1LST8y-0003o5-Qw@www.linuxtv.org>
Mauro,
Please revert this patch as it is incorrect. A correct version is
available at http://jusst.de/hg/v4l-dvb which is undergoing tests.
http://jusst.de/hg/v4l-dvb/rev/368dc6078295
Why did you have to hastily apply this patch, especially when i
mentioned this earlier ?
Regards,
Manu
Patch from Roel Kluin wrote:
> The patch number 10393 was added via Mauro Carvalho Chehab <mchehab@redhat.com>
> to http://linuxtv.org/hg/v4l-dvb master development tree.
>
> Kernel patches in this development tree may be modified to be backward
> compatible with older kernels. Compatibility modifications will be
> removed before inclusion into the mainstream Kernel
>
> If anyone has any objections, please let us know by sending a message to:
> Linux Media Mailing List <linux-media@vger.kernel.org>
>
> ------
>
> From: Roel Kluin <roel.kluin@gmail.com>
> DVB: negative internal->sub_range won't get noticed
>
>
> internal->sub_range is unsigned, a negative won't get noticed.
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
>
>
> ---
>
> linux/drivers/media/dvb/frontends/stb0899_algo.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff -r 6ca70bcb4972 -r d3bfc53d0b67 linux/drivers/media/dvb/frontends/stb0899_algo.c
> --- a/linux/drivers/media/dvb/frontends/stb0899_algo.c Wed Jan 14 16:17:59 2009 +0000
> +++ b/linux/drivers/media/dvb/frontends/stb0899_algo.c Sun Jan 18 23:31:26 2009 +0000
> @@ -467,12 +467,13 @@ static void next_sub_range(struct stb089
>
> if (internal->sub_dir > 0) {
> old_sub_range = internal->sub_range;
> - internal->sub_range = MIN((internal->srch_range / 2) -
> + if (internal->tuner_offst + internal->sub_range / 2 >=
> + internal->srch_range / 2)
> + internal->sub_range = 0;
> + else
> + internal->sub_range = MIN((internal->srch_range / 2) -
> (internal->tuner_offst + internal->sub_range / 2),
> internal->sub_range);
> -
> - if (internal->sub_range < 0)
> - internal->sub_range = 0;
>
> internal->tuner_offst += (old_sub_range + internal->sub_range) / 2;
> }
>
>
> ---
>
> Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/d3bfc53d0b678da495fd2b559e154c5e95584079
>
> _______________________________________________
> linuxtv-commits mailing list
> linuxtv-commits@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
>
next parent reply other threads:[~2009-01-29 10:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1LST8y-0003o5-Qw@www.linuxtv.org>
2009-01-29 10:46 ` Manu Abraham [this message]
2009-01-29 12:21 ` [linuxtv-commits] [hg:v4l-dvb] DVB: negative internal->sub_range won't get noticed Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49818912.7000109@gmail.com \
--to=abraham.manu@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=roel.kluin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox