[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070724155952.GA13874@cosmic.amd.com>
Date: Tue, 24 Jul 2007 09:59:52 -0600
From: "Jordan Crouse" <jordan.crouse@....com>
To: bunk@...sta.de
cc: bzolnier@...il.com, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: drivers/ide/pci/cs5535.c: array overrun
> The Coverity checker spotted the following array overrun in
> drivers/ide/pci/cs5535.c:
<-- snip -->
> if (speed >= XFER_UDMA_0 && speed <= XFER_UDMA_7)
> reg |= cs5535_udma_timings[speed - XFER_UDMA_0];
Fix is attached. Somebody got overzealous - the 5535 only supports
up to UDMA4, which matches the array.
Jordan
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
View attachment "5535-fix-overrun.patch" of type "text/x-diff" (1025 bytes)
Powered by blists - more mailing lists