]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
disk/part_dos.c: Fix a variable typo in write_mbr_partitions()
authorChristian Melki <christian.melki@t2data.com>
Mon, 7 Jun 2021 09:21:15 +0000 (11:21 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 22 Jun 2021 17:58:08 +0000 (13:58 -0400)
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")
Signed-off-by: Christian Melki <christian.melki@t2data.com>
disk/part_dos.c

index 60addc6e00d43f473c91cbad5d289bae768f6f3a..9e29aa6583a93f938dc4d89cbdb9bb84ad115114 100644 (file)
@@ -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;
 }