brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0189-scripts-dtc-Fix-UMR-causing-corrupt-dtbo-overlay-fil.patch
1 From e3a356dd422147d4d96aa0c9378551363b1a5b99 Mon Sep 17 00:00:00 2001
2 From: Matthias Reichl <hias@horus.com>
3 Date: Tue, 15 Mar 2016 21:13:39 +0100
4 Subject: [PATCH 189/381] scripts/dtc: Fix UMR causing corrupt dtbo overlay
5 files
6
7 struct fixup_entry is allocated from the heap but it's member
8 local_fixup_generated was never initialized. This lead to
9 corrupted dtbo files.
10
11 Fix this by initializing local_fixup_generated to false.
12
13 Signed-off-by: Matthias Reichl <hias@horus.com>
14 ---
15 scripts/dtc/checks.c | 1 +
16 1 file changed, 1 insertion(+)
17
18 --- a/scripts/dtc/checks.c
19 +++ b/scripts/dtc/checks.c
20 @@ -523,6 +523,7 @@ static void fixup_phandle_references(str
21 fe->prop = prop;
22 fe->offset = m->offset;
23 fe->next = NULL;
24 + fe->local_fixup_generated = false;
25
26 /* append it to the local fixups */
27 fep = &dt->local_fixups;