diff options
| author | Daniel Scally <djrscally@gmail.com> | 2021-01-07 14:28:28 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-26 19:25:22 +0100 |
| commit | d9b1103bc622b20498c1d2fb9c00805b9d6f2921 (patch) | |
| tree | 6b8d44976bc8088613185548348cc6e3a84b0a64 /lib/test_printf.c | |
| parent | media: device property: Call fwnode_graph_get_endpoint_by_id() for fwnode->se... (diff) | |
| download | linux-d9b1103bc622b20498c1d2fb9c00805b9d6f2921.tar.gz linux-d9b1103bc622b20498c1d2fb9c00805b9d6f2921.zip | |
media: software_node: Enforce parent before child ordering of nodes arrays
Registering software_nodes with the .parent member set to point to a
currently unregistered software_node has the potential for problems,
so enforce parent -> child ordering in arrays passed in to
software_node_register_nodes().
Software nodes that are children of another software node should be
unregistered before their parent. To allow easy unregistering of an array
of software_nodes ordered parent to child, reverse the order in which
software_node_unregister_nodes() unregisters software_nodes.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions
