Re: [PATCH] msdos: Fix overflow in converting partition start and length into 512B blocks

2018-09-19 Thread Daniel Kiper
On Thu, Sep 13, 2018 at 04:08:20PM +0800, Michael Chang wrote: > When booting from NVME SSD with 4k sector size, it fails with the message. > > error: attempt to read or write outside of partition. > > This patch fixes the problem by fixing overflow in converting partition start > and length into 5

[PATCH] msdos: Fix overflow in converting partition start and length into 512B blocks

2018-09-13 Thread Michael Chang
When booting from NVME SSD with 4k sector size, it fails with the message. error: attempt to read or write outside of partition. This patch fixes the problem by fixing overflow in converting partition start and length into 512B blocks. Signed-off-by: Michael Chang --- grub-core/partmap/msdos.c