[PATCH] mtd: rawnand: ingenic: Fix missing put_device in ingenic_ecc_get

Miquel Raynal miquel.raynal at bootlin.com
Sun Jan 23 07:23:32 PST 2022


On Thu, 2021-12-30 at 07:27:51 UTC, Miaoqian Lin wrote:
> If of_find_device_by_node() succeeds, ingenic_ecc_get() doesn't have
> a corresponding put_device(). Thus add put_device() to fix the exception
> handling.
> 
> Fixes: 15de8c6 ("mtd: rawnand: ingenic: Separate top-level and SoC specific code")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>
> Reviewed-by: Paul Cercueil <paul at crapouillou.net>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list