]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spinand: Fix the error/cleanup path in spinand_init()
authorBoris Brezillon <bbrezillon@kernel.org>
Thu, 24 Jan 2019 14:46:54 +0000 (15:46 +0100)
committerBoris Brezillon <bbrezillon@kernel.org>
Thu, 31 Jan 2019 11:31:02 +0000 (12:31 +0100)
commit9a18930599de4af503eef87064f7f1c952756235
tree832abc4edd02f2bca1ec58e15933b7adb0b13f8c
parent80172dc50ffd5d5ed061a610528aadf17753cd7a
mtd: spinand: Fix the error/cleanup path in spinand_init()

The manufacturer specific initialization has already been done when
block unlocking takes place, and if anything goes wrong during this
procedure we should call spinand_manufacturer_cleanup().

Fixes: 4f55137c96ad ("mtd: nand: Add core infrastructure to support SPI NANDs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/core.c