Skip to content
Snippets Groups Projects
Commit 4edfabd9 authored by Robert Hancock's avatar Robert Hancock Committed by Tom Rini
Browse files

disk: part: Don't skip partition init


blk_get_device_by_str was skipping part_init when hw partition 0 was
selected because it is the default. However, this caused issues when
switching to a non-zero partition and then back to partition zero, as
stale data from the wrong partition was returned.

Remove this optimization and call part_init regardless of the selected
partition.

Signed-off-by: default avatarRobert Hancock <hancock@sedsystems.ca>
parent 3d2ab90d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment