commit | 1bca8de6d5c6fc6c2bf61895d77615c6a594b3a7 | [log] [tgz] |
---|---|---|
author | Faiz Abbas <faiz_abbas@ti.com> | Wed Sep 04 20:10:12 2019 +0530 |
committer | Tom Rini <trini@konsulko.com> | Thu Sep 19 12:54:29 2019 -0400 |
tree | 06527700b485fdc29816ce06ed8e6df230431ffb | |
parent | 3d5f27c6836af17c9c20dc7be863031d1839ee49 [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 <faiz_abbas@ti.com> Acked-by: Alexey Brodkin <abrodkin@synopsys.com>