8432053ea0209afb908a2170a5fffd08c8e96546
[openwrt/staging/dedeckeh.git] / package / boot / uboot-mediatek / patches / 001-disk-part_dos.c-Fix-a-variable-typo-in-write_mbr_par.patch
1 From c7d1b1890880ee64786b92a1b95ba9ecb4694997 Mon Sep 17 00:00:00 2001
2 From: Christian Melki <christian.melki@t2data.com>
3 Date: Mon, 7 Jun 2021 11:21:15 +0200
4 Subject: [PATCH] disk/part_dos.c: Fix a variable typo in
5 write_mbr_partitions()
6
7 This function is passed *dev not *dev_desc, so pass the right name to
8 part_init().
9
10 Fixes: f14c5ee5ab8b ("disk: part_dos: update partition table entries after write")
11 Signed-off-by: Christian Melki <christian.melki@t2data.com>
12 ---
13 disk/part_dos.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/disk/part_dos.c
17 +++ b/disk/part_dos.c
18 @@ -424,7 +424,7 @@ int write_mbr_partitions(struct blk_desc
19 }
20
21 /* Update the partition table entries*/
22 - part_init(dev_desc);
23 + part_init(dev);
24
25 return 0;
26 }