From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcHZa-0001vg-RI for linux-mtd@lists.infradead.org; Sun, 08 Jul 2018 21:50:30 +0000 Date: Sun, 8 Jul 2018 23:50:14 +0200 From: Miquel Raynal To: Wei Yongjun Cc: Boris Brezillon , Richard Weinberger , "David Woodhouse" , Brian Norris , Marek Vasut , Frieder Schrempf , , , Subject: Re: [PATCH -next v3] mtd: spinand: fix missing unlock on error Message-ID: <20180708235014.43648218@xps13> In-Reply-To: <1530696627-84879-1-git-send-email-weiyongjun1@huawei.com> References: <1530696061-76467-1-git-send-email-weiyongjun1@huawei.com> <1530696627-84879-1-git-send-email-weiyongjun1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Wei, Wei Yongjun wrote on Wed, 4 Jul 2018 09:30:27 +0000: > Add the missing unlock before return from function > spinand_mtd_(read|write) in the error handling case. >=20 > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI N= ANDs") > Signed-off-by: Wei Yongjun > --- > v2 -> v3: remove blank line > v1 -> v2: using break instead of return > --- Merged with the original commit too. Thanks, Miqu=C3=A8l