[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200324220533.15273-1-miquel.raynal@bootlin.com>
Date: Tue, 24 Mar 2020 23:05:33 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Xiaoming Ni <nixiaoming@...wei.com>, miquel.raynal@...tlin.com,
richard@....at, vigneshr@...com
Cc: linux-mtd@...ts.infradead.org, zhangweimin12@...wei.com,
wangle6@...wei.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mtd:Fix issue where write_cached_data() fails but write() still returns success
On Fri, 2020-03-20 at 03:15:11 UTC, Xiaoming Ni wrote:
> mtdblock_flush()
> -->write_cached_data()
> --->erase_write()
> mtdblock: erase of region [0x40000, 0x20000] on "xxx" failed
>
> Because mtdblock_flush() always returns 0,
> even if write_cached_data() fails and data is not written to the device,
> syscall_write() still returns success
>
> Signed-off-by: Xiaoming Ni <nixiaoming@...wei.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
Powered by blists - more mailing lists