I haven't looked at the closely, but if you're right, other code is
going to fall off the ends of arrays as well.
> If I am right, the following patch should fix it for you.
>
> NeilBrown
>
> --- fs/partitions/check.c 2001/08/15 04:56:57 1.1
> +++ fs/partitions/check.c 2001/08/15 04:57:47
> @@ -101,7 +101,7 @@
> int unit = (minor >> hd->minor_shift) + 'a';
>
> part = minor & ((1 << hd->minor_shift) - 1);
> - if (hd->part[minor].de) {
> + if (unit < hd->nr_real && hd->part[minor].de) {
This is definately wrong, since unit is not an index, but an ASCII
character. See the "+ 'a'" in there?
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/