]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: sm_common: fix the probe function error path
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 25 Feb 2018 22:09:14 +0000 (23:09 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:04 +0000 (09:46 +0200)
commit82b2d5ec9f931d96d05f9df504174e3b8bd0d955
tree1db4ca3b8f6d6e72a03ff1a1143afdfd737cbeec
parent1fc7946b52f8d4e611b907fc6c23e3e68f8a2ec3
mtd: rawnand: sm_common: fix the probe function error path

nand_cleanup() should be called upon error after a successful
nand_scan_tail().

Rework the error path to follow this rule .

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/sm_common.c