Re: 2.5.41-mm3

From: William Lee Irwin III (wli@holomorphy.com)
Date: Fri Oct 11 2002 - 08:38:42 EST


On Fri, Oct 11, 2002 at 02:28:10AM -0700, Andrew Morton wrote:
> url: http://www.zip.com.au/~akpm/linux/patches/2.5/2.5.41/2.5.41-mm3/

This paride driver seems to have been missed with all the sector_t
and sector_div() business.

--- akpm-2.5.41-3/drivers/block/paride/pf.c 2002-10-11 06:09:31.000000000 -0700
+++ wli-2.5.41-3/drivers/block/paride/pf.c 2002-10-11 06:38:16.000000000 -0700
@@ -369,11 +369,11 @@
                 return -EINVAL;
         capacity = get_capacity(pf->disk);
         if (capacity < PF_FD_MAX) {
- g.cylinders = capacity / (PF_FD_HDS * PF_FD_SPT);
+ g.cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT);
                 g.heads = PF_FD_HDS;
                 g.sectors = PF_FD_SPT;
         } else {
- g.cylinders = capacity / (PF_HD_HDS * PF_HD_SPT);
+ g.cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT);
                 g.heads = PF_HD_HDS;
                 g.sectors = PF_HD_SPT;
         }
-
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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:41 EST