diff options
| author | Faiz Abbas <[email protected]> | 2019-09-04 20:10:12 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-09-19 12:54:29 -0400 |
| commit | 7aed3d380981565b5bb2810d5d13aad1ff994f1a (patch) | |
| tree | 06527700b485fdc29816ce06ed8e6df230431ffb /scripts | |
| parent | fd75bf7bfa654420ecfd3aff5d91a2972f55ecc1 (diff) | |
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: Faiz Abbas <[email protected]>
Acked-by: Alexey Brodkin <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
