Skip to contentSkip to conversation

disk/part_dos.c: Fix what looks like a variable typo in the write functionality.

PATCH In review Christian Melki 2 participants 2 messages Jun 7, 2021 – Jun 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 disk/part_dos.c: Fix what looks like a variable typo in the write functionality.

---
 disk/part_dos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
disk/part_dos.c +1 -1
index 60addc6e00..9e29aa6583 100644
@@ -424,7 +424,7 @@ int write_mbr_partitions(struct blk_desc *dev,
 	}
 
 	/* Update the partition table entries*/
-	part_init(dev_desc);
+	part_init(dev);
 
 	return 0;
 }
Signature · 1 line
2.31.1
#1 lore raw

Re: [PATCH] disk/part_dos.c: Fix a variable typo in write_mbr_partitions()

Quoted 5 lines · Christian Melki

This function is passed *dev not *dev_desc, so pass the right name to part_init().

Fixes f14c5ee5ab8b ("disk: part_dos: update partition table entries after write")

With the above reworded commit message, applied to u-boot/master, thanks!

Signature · 1 line
Tom