Skip to content
Commit bfd98b9a authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

disk: Extend disk_blk_part_validate() with range checking



Check whether access is out of bounds of the partition and
return an error. This way there is no danger of esp. write
or erase outside of the confines of partition.

Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@mailbox.org>
parent 2bc0dfef
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