Skip to content
Commit 7aed3d38 authored by Faiz Abbas's avatar Faiz Abbas Committed by Tom Rini
Browse files

disk: part_dos: Allocate at least one block size for mbr



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: default avatarFaiz Abbas <faiz_abbas@ti.com>
Acked-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
parent fd75bf7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment