aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memory/samsung/exynos-srom.c
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2018-12-18 11:40:02 -0800
committerRob Herring <robh@kernel.org>2018-12-21 12:41:58 -0600
commitb8a9ac1a5b99a2fcbed19fd29d2d59270c281a31 (patch)
tree76a98444b47a29c55ba65ba95c32ac542c295431 /drivers/memory/samsung/exynos-srom.c
parentgpio-omap.txt: add reg and interrupts properties (diff)
downloadlinux-dev-b8a9ac1a5b99a2fcbed19fd29d2d59270c281a31.tar.xz
linux-dev-b8a9ac1a5b99a2fcbed19fd29d2d59270c281a31.zip
of: of_node_get()/of_node_put() nodes held in phandle cache
The phandle cache contains struct device_node pointers. The refcount of the pointers was not incremented while in the cache, allowing use after free error after kfree() of the node. Add the proper increment and decrement of the use count. Fixes: 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()") Cc: stable@vger.kernel.org # v4.17+ Signed-off-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/memory/samsung/exynos-srom.c')
0 files changed, 0 insertions, 0 deletions