diff options
author | Johan Hovold <johan@kernel.org> | 2025-09-22 17:22:04 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-09-29 17:55:40 +0200 |
commit | fa1f26b48fe43195aa0ac4badf5651063590326f (patch) | |
tree | 1b8f22737c10053dac26801bdf13ab1435693602 /rust/helpers/security.c | |
parent | 8ed4728eb9f10b57c3eb02e0f6933a89ffcb8a91 (diff) |
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: 62116e5171e0 ("mtd: nand: omap2: Support for hardware BCH error correction.")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions