Re: [PATCH] ide: set an upper limit to nb_sectors

2021-01-19 Thread Philippe Mathieu-Daudé
Hi Prasad, On 1/19/21 2:42 PM, P J P wrote: > From: Prasad J Pandit > > Set an upper limit to number of sectors on an IDE disk media. > This is to ensure that logical block addresses (LBA) and > nb_sector arguments remain within INT_MAX range. > > Suggested-by: Paolo Bonzini > Signed-off-by:

[PATCH] ide: set an upper limit to nb_sectors

2021-01-19 Thread P J P
From: Prasad J Pandit Set an upper limit to number of sectors on an IDE disk media. This is to ensure that logical block addresses (LBA) and nb_sector arguments remain within INT_MAX range. Suggested-by: Paolo Bonzini Signed-off-by: Prasad J Pandit --- hw/ide/core.c | 23