summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2019-06-21 14:11:11 -0400
committerTom Rini <[email protected]>2019-06-21 14:11:11 -0400
commit271dc9ce7f9652e2fe3794871900fef292a9777b (patch)
tree809041444563947c9df97e6e7149abf79c9431b6 /disk
parent226a35ef0ef310d8fffa3e6283ee3aab9dab26aa (diff)
parentf5128514137633ee951b1c484945bec9092c4e99 (diff)
Merge branch '2019-06-21-master-imports'
- Assorted small fixes - Bugfix RSA handling code to reject images with unknown padding. - Some boards disabled unused features to turn off DM warnings.
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/disk/part.c b/disk/part.c
index 862078f3e7c..f14bc22b6db 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -414,11 +414,10 @@ int blk_get_device_by_str(const char *ifname, const char *dev_hwpart_str,
#ifdef CONFIG_HAVE_BLOCK_DEVICE
/*
* Updates the partition table for the specified hw partition.
- * Does not need to be done for hwpart 0 since it is default and
- * already loaded.
+ * Always should be done, otherwise hw partition 0 will return stale
+ * data after displaying a non-zero hw partition.
*/
- if(hwpart != 0)
- part_init(*dev_desc);
+ part_init(*dev_desc);
#endif
cleanup: