Message ID | 1530624845-28319-1-git-send-email-absahu@codeaurora.org (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Tue, Jul 03, 2018 at 07:04:05PM +0530, Abhishek Sahu wrote:
> commit e9893e6fa932f42c90c4ac5849fa9aa0f0f00a34 upstream.
No it is not :(
Please fix up and resend.
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Jul 05, 2018 at 08:03:53PM +0200, Greg KH wrote: > On Tue, Jul 03, 2018 at 07:04:05PM +0530, Abhishek Sahu wrote: > > commit e9893e6fa932f42c90c4ac5849fa9aa0f0f00a34 upstream. > > No it is not :( > > Please fix up and resend. Ugh, my fault, nevermind, now queued up. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 528e04f..d410de3 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -440,7 +440,7 @@ static int nand_block_bad(struct mtd_info *mtd, loff_t ofs) for (; page < page_end; page++) { res = chip->ecc.read_oob(mtd, chip, page); - if (res) + if (res < 0) return res; bad = chip->oob_poi[chip->badblockpos];