Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'riscv-for-linus-5.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux

Pull RISC-V fixes from Palmer Dabbelt:

- fix the sifive-l2-cache device tree bindings for json-schema
compatibility. This does not change the intended behavior of the
binding.

- avoid improperly freeing necessary resources during early boot.

* tag 'riscv-for-linus-5.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
riscv: Fix a number of free'd resources in init_resources()
dt-bindings: sifive-l2-cache: Fix 'select' matching

+6 -6
+4 -4
Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml
··· 24 24 select: 25 25 properties: 26 26 compatible: 27 - items: 28 - - enum: 29 - - sifive,fu540-c000-ccache 30 - - sifive,fu740-c000-ccache 27 + contains: 28 + enum: 29 + - sifive,fu540-c000-ccache 30 + - sifive,fu740-c000-ccache 31 31 32 32 required: 33 33 - compatible
+2 -2
arch/riscv/kernel/setup.c
··· 229 229 } 230 230 231 231 /* Clean-up any unused pre-allocated resources */ 232 - mem_res_sz = (num_resources - res_idx + 1) * sizeof(*mem_res); 233 - memblock_free(__pa(mem_res), mem_res_sz); 232 + if (res_idx >= 0) 233 + memblock_free(__pa(mem_res), (res_idx + 1) * sizeof(*mem_res)); 234 234 return; 235 235 236 236 error: