| commit | 6746f3e8939dd3cd8ebe928e3f913e9cdfcaffd5 | [log] [tgz] |
|---|---|---|
| author | Sakari Ailus <[email protected]> | Thu Nov 09 12:10:09 2023 +0200 |
| committer | Greg Kroah-Hartman <[email protected]> | Thu Jan 25 14:37:54 2024 -0800 |
| tree | 7765273f863298eab603fae6a80590fc95f2945a | |
| parent | 381bea33a86e74c26551fd822c8b86236304ea50 [diff] |
software node: Let args be NULL in software_node_get_reference_args
[ Upstream commit 1eaea4b3604eb9ca7d9a1e73d88fc121bb4061f5 ]
fwnode_get_property_reference_args() may not be called with args argument
NULL and while OF already supports this. Add the missing NULL check.
The purpose is to be able to count the references.
Fixes: b06184acf751 ("software node: Add software_node_get_reference_args()")
Signed-off-by: Sakari Ailus <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>