]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: mtk: release lock on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 3 Jul 2017 10:54:28 +0000 (13:54 +0300)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 3 Jul 2017 11:39:09 +0000 (13:39 +0200)
commit81667e9c8ad827365f2d1e8b924caf062a19c593
tree87f717210124729e347eae8362bebaf720ab9405
parentedfee3619c4955be38d414f25bd4f6c5c1b029ba
mtd: nand: mtk: release lock on error path

We only want to hold the lock on the success path, not this error path.

Fixes: 7ec4a37c5d71 ("mtd: nand: mediatek: add support for different MTK NAND FLASH Controller IP")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/mtk_ecc.c