summaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2023-01-27 11:40:12 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-28 14:38:44 +0100
commitedcf2fb660526b5ed29f93bd17328a2b4835c8b2 (patch)
tree9162c0af131401bb02733533b8d391ec5438cd20 /.cocciconfig
parentnvmem: core: fix registration vs use race (diff)
downloadlinux-edcf2fb660526b5ed29f93bd17328a2b4835c8b2.tar.xz
linux-edcf2fb660526b5ed29f93bd17328a2b4835c8b2.zip
nvmem: core: fix device node refcounting
In of_nvmem_cell_get(), of_get_next_parent() is used on cell_np. This will decrement the refcount on cell_np, but cell_np is still used later in the code. Use of_get_parent() instead and of_node_put() in the appropriate places. Fixes: 69aba7948cbe ("nvmem: Add a simple NVMEM framework for consumers") Fixes: 7ae6478b304b ("nvmem: core: rework nvmem cell instance creation") Cc: stable@vger.kernel.org Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20230127104015.23839-8-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions