aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/qcom_nandc.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2018-08-27 10:21:49 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-11-18 08:09:44 +0100
commit5d1e9c2212ea6b4dd735e4fc3dd6279a365d5d10 (patch)
tree09adc44f99f833cf30dee121659a98515cbb1a13 /drivers/mtd/nand/raw/qcom_nandc.c
parentmtd: spi_nor: pass DMA-able buffer to spi_nor_read_raw() (diff)
downloadlinux-dev-5d1e9c2212ea6b4dd735e4fc3dd6279a365d5d10.tar.xz
linux-dev-5d1e9c2212ea6b4dd735e4fc3dd6279a365d5d10.zip
mtd: rawnand: atmel: fix OF child-node lookup
Use the new of_get_compatible_child() helper to lookup the nfc child node instead of using of_find_compatible_node(), which searches the entire tree from a given start node and thus can return an unrelated (i.e. non-child) node. This also addresses a potential use-after-free (e.g. after probe deferral) as the tree-wide helper drops a reference to its first argument (i.e. the node of the device being probed). While at it, also fix a related nfc-node reference leak. Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver") Cc: stable <stable@vger.kernel.org> # 4.11 Cc: Nicolas Ferre <nicolas.ferre@microchip.com> Cc: Josh Wu <rainyfeeling@outlook.com> Cc: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/qcom_nandc.c')
0 files changed, 0 insertions, 0 deletions