android_kernel_motorola_sm6375/drivers/of
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zijun Hu 4aac5315dc of: reserved-memory: Fix using wrong number of cells to get property 'alignment'
commit 267b21d0bef8e67dbe6c591c9991444e58237ec9 upstream.

According to DT spec, size of property 'alignment' is based on parent
node’s #size-cells property.

But __reserved_mem_alloc_size() wrongly uses @dt_root_addr_cells to get
the property obviously.

Fix by using @dt_root_size_cells instead of @dt_root_addr_cells.

Fixes: 3f0c820664 ("drivers: of: add initialization code for dynamic reserved memory")
Cc: [email protected]
Signed-off-by: Zijun Hu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring (Arm) <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-03-13 12:43:08 +01:00
..
unittest-data of: unittest: add overlay gpio test to catch gpio hog problem 2024-02-23 08:25:09 +01:00
address.c of: Fix refcount leakage for OF node returned by __of_get_dma_parent() 2025-01-09 13:23:30 +01:00
base.c of: Fix of_find_node_opts_by_path() handling of alias+path+options 2025-03-13 12:43:08 +01:00
device.c of: Fix modalias string generation 2023-05-17 11:35:47 +02:00
dynamic.c of: dynamic: Fix of_reconfig_get_state_change() return value documentation 2023-12-13 18:18:11 +01:00
fdt.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
fdt_address.c
irq.c of/irq: Fix using uninitialized variable @addr_len in API of_irq_parse_one() 2025-01-09 13:23:29 +01:00
Kconfig
kobj.c
Makefile
of_mdio.c of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-28 11:04:06 +02:00
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c of: reserved-memory: Fix using wrong number of cells to get property 'alignment' 2025-03-13 12:43:08 +01:00
overlay.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
pdt.c
platform.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
property.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
resolver.c
unittest.c of: gpio unittest kfree() wrong object 2024-02-23 08:25:15 +01:00