Commit fa1f26b4 authored by Johan Hovold's avatar Johan Hovold Committed by Miquel Raynal
Browse files

mtd: rawnand: omap2: fix device leak on probe failure



Make sure to drop the reference to the elm device taken by
of_find_device_by_node() during probe on errors and on driver unload.

Fixes: 62116e51 ("mtd: nand: omap2: Support for hardware BCH error correction.")
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 8ed4728e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment