Re: [U-Boot] [PATCH] disk: part_dos: Allocate at least one block size for mbr

2019-09-20 Thread Tom Rini
On Wed, Sep 04, 2019 at 08:10:12PM +0530, Faiz Abbas wrote: > The blk_dread() following the mbr allocation reads one block from the > device. This will lead to overflow if block size is greater than the > size of legacy_mbr. Fix this by allocating at least one block size. > > Signed-off-by: Faiz

Re: [U-Boot] [PATCH] disk: part_dos: Allocate at least one block size for mbr

2019-09-04 Thread Alexey Brodkin
Hi Faiz, > -Original Message- > From: Faiz Abbas > Sent: Wednesday, September 4, 2019 5:40 PM > To: u-boot@lists.denx.de > Cc: tr...@konsulko.com; Alexey Brodkin ; > paule...@forallsecure.com; > faiz_ab...@ti.com > Subject: [PATCH] disk: part_dos: Allocate at least one block size for

[U-Boot] [PATCH] disk: part_dos: Allocate at least one block size for mbr

2019-09-04 Thread Faiz Abbas
The blk_dread() following the mbr allocation reads one block from the device. This will lead to overflow if block size is greater than the size of legacy_mbr. Fix this by allocating at least one block size. Signed-off-by: Faiz Abbas --- disk/part_dos.c | 3 ++- 1 file changed, 2 insertions(+),