aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_vf_lib.c
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2023-08-21 02:39:28 +0000
committerRob Herring <[email protected]>2023-08-21 21:12:28 +0000
commit7882541ca06d51a6c12d687827176c16d5e05f65 (patch)
tree417c4ed9c1cc3e3440fc803510a4d72a0bfeb3dc /drivers/net/ethernet/intel/ice/ice_vf_lib.c
parentof: dynamic: Refactor action prints to not use "%pOF" inside devtree_lock (diff)
downloadkernel-7882541ca06d51a6c12d687827176c16d5e05f65.tar.gz
kernel-7882541ca06d51a6c12d687827176c16d5e05f65.zip
of/platform: increase refcount of fwnode
commit 0f8e5651095b ("of/platform: Propagate firmware node by calling device_set_node()") use of_fwnode_handle to replace of_node_get, which introduces a side effect that the refcount is not increased. Then the out of tree jailhouse hypervisor enable/disable test will trigger kernel dump in of_overlay_remove, with the following sequence " of_changeset_revert(&overlay_changeset); of_changeset_destroy(&overlay_changeset); of_overlay_remove(&overlay_id); " So increase the refcount to avoid issues. This patch also release the refcount when releasing amba device to avoid refcount leakage. Fixes: 0f8e5651095b ("of/platform: Propagate firmware node by calling device_set_node()") Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_vf_lib.c')
0 files changed, 0 insertions, 0 deletions