commit | 219907e9b69b7da76630ed2f1f8e59b5660a8179 | [log] [tgz] |
---|---|---|
author | Robert Hancock <hancock@sedsystems.ca> | Tue Jun 18 09:53:04 2019 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Jun 21 10:07:11 2019 -0400 |
tree | 6ecc6eb66f5e804535ec7419de2983be25da590d | |
parent | 3d356e602f74e9c79362267c2c6dceb4727a4884 [diff] |
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: Robert Hancock <hancock@sedsystems.ca>