On Sun, May 08, 2011 at 11:20:27AM +0000, Andrey V. Elsukov wrote:
> Author: ae
> Date: Sun May  8 11:20:27 2011
> New Revision: 221645
> URL: http://svn.freebsd.org/changeset/base/221645
> 
> Log:
>   Limit number of sectors that can be addressed.
>   
>   MFC after:  1 week
> 
> Modified:
>   head/sys/geom/part/g_part_pc98.c
> 
> Modified: head/sys/geom/part/g_part_pc98.c
> ==============================================================================
> --- head/sys/geom/part/g_part_pc98.c  Sun May  8 11:16:17 2011        
> (r221644)
> +++ head/sys/geom/part/g_part_pc98.c  Sun May  8 11:20:27 2011        
> (r221645)
> @@ -261,7 +261,7 @@ g_part_pc98_create(struct g_part_table *
>  
>       cyl = basetable->gpt_heads * basetable->gpt_sectors;
>  
> -     msize = MIN(pp->mediasize / SECSIZE, 0xffffffff);
> +     msize = MIN(pp->mediasize / SECSIZE, UINT_MAX);
Shouldn't this be UINT32_MAX (consistently) ?

Attachment: pgpfJpbFL9n4K.pgp
Description: PGP signature



Reply via email to