Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8604e634 authored by Miquel Raynal's avatar Miquel Raynal
Browse files

mtd: rawnand: docg4: fix the probe function error path



nand_release() should not be called on an MTD device that has not been
registered. While it should work thanks to the checks done in
mtd_device_unregister() it's a bad practice to cleanup/release
something that has not previously been initialized/allocated.

Rework the error path to follow this rule.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 1dfac31a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment