Re: [PATCH 1/2] Grow: avoid overflow in compute_backup_blocks()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/5/18 6:35 PM, NeilBrown wrote:
> 
> With a chunk size of 16Meg and data drive count of 8,
> this calculate can easily overflow the 'int' type that
> is used for the multiplications.
> So force it to use "long" instead.
> 
> Reported-and-tested-by: Ed Spiridonov <edo.rus@xxxxxxxxx>
> Signed-off-by: NeilBrown <neilb@xxxxxxxx>
> ---
>  Grow.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied!

Thanks,
Jes




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux