mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
mtd: rawnand: hynix: fixed typo
[ Upstream commit6819db94e1
] The function hynix_nand_rr_init() should probably return an error code. Judging by the usage, it seems that the return code is passed up the call stack. Right now, it always returns 0 and the function hynix_nand_cleanup() in hynix_nand_init() has never been called. Found by RASU JSC and Linux Verification Center (linuxtesting.org) Fixes:626994e074
("mtd: nand: hynix: Add read-retry support for 1x nm MLC NANDs") Signed-off-by: Maxim Korotkov <korotkov.maxim.s@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20240313102721.1991299-1-korotkov.maxim.s@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c2db9cb144
commit
0411814668
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ static int hynix_nand_rr_init(struct nand_chip *chip)
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_warn("failed to initialize read-retry infrastructure");
|
pr_warn("failed to initialize read-retry infrastructure");
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hynix_nand_extract_oobsize(struct nand_chip *chip,
|
static void hynix_nand_extract_oobsize(struct nand_chip *chip,
|
||||||
|
|
Loading…
Reference in a new issue