[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4F95B951.6020700@broadcom.com>
Date: Mon, 23 Apr 2012 13:19:29 -0700
From: "Jiandong Zheng" <jdzheng@...adcom.com>
To: "Christian Dietrich" <dietrich@...fau.de>
cc: "Scott Branden" <sbranden@...adcom.com>,
"Russell King" <linux@....linux.org.uk>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
vamos-dev@...informatik.uni-erlangen.de
Subject: Re: Possible integer overflow in mach-bcmring with FPGA11107
On 4/23/2012 5:43 AM, Christian Dietrich wrote:
>
> This seems totally innocent, but when doing the caluculation for
> rate_hz by hand (or python) the result is slighly bigger than
> 2^32-1. Therfore an integer overflow should occur and the rate_hz rate
> will be far too low. It may be that there is a sanity check in
> hardware, but i don't know the used hardware at all.
>
Hi Christian,
Yes. This is a problem. I will cleanup fpga11107 code including this soon.
Thanks,
JD
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists