Re: possible bug in ide-disk.c (2.6.18.2 but also older)

From: Alan
Date: Mon Nov 20 2006 - 10:21:33 EST


On Mon, 20 Nov 2006 15:51:48 +0100
Andreas Leitgeb <avl@xxxxxxxx> wrote:

> Since I got not even a beep as answer, I'm trying again
> to get this through to someone who cares:

Sounds like the Knoppix kernel is built with GPT partition handling and
your disk has an odd number of sectors ?

> The problem is in idedisk_read_native_max_address()
> and equivalently in idedisk_read_native_max_address_ext()
> in a line like this (near the end):
> addr++; /* since the return value is (maxlba - 1), we add 1 */
>
> I believe that this is wrong, in so far as it is device-specific.

Which part of the standard are you referring to here ?

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/