mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:00:53 +07:00
Merge branch 'dt/linus' into dt/next
This commit is contained in:
commit
b4e8c0b12d
@ -324,8 +324,10 @@ int of_reserved_mem_device_init_by_idx(struct device *dev,
|
||||
if (!target)
|
||||
return -ENODEV;
|
||||
|
||||
if (!of_device_is_available(target))
|
||||
if (!of_device_is_available(target)) {
|
||||
of_node_put(target);
|
||||
return 0;
|
||||
}
|
||||
|
||||
rmem = __find_rmem(target);
|
||||
of_node_put(target);
|
||||
|
@ -1297,6 +1297,7 @@ static int __init unittest_data_add(void)
|
||||
of_fdt_unflatten_tree(unittest_data, NULL, &unittest_data_node);
|
||||
if (!unittest_data_node) {
|
||||
pr_warn("%s: No tree to attach; not running tests\n", __func__);
|
||||
kfree(unittest_data);
|
||||
return -ENODATA;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user