aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/kernel/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorZhaoLong Wang <wangzhaolong1@huawei.com>2023-09-26 14:57:33 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2023-10-16 10:50:28 +0200
commit0339f62a9a778bb7cd4f764cd4640cc89155177e (patch)
treec97c521eeced18bbbc59ffc313b3b115157fa577 /rust/kernel/ssh:/git@git.zx2c4.com
parentmtd: map_ram: prevent use of point and unpoint when NO_XIP is set (diff)
mtd: Add WARN_ON_ONCE() to mtd_read() to check the return value
If the driver cannot read all the requested data, -EBADMSG or -EUCLEAN should never be returned. Add a WARN_ON_ONCE() to help driver developers detect this error. Signed-off-by: ZhaoLong Wang <wangzhaolong1@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230926065733.3240322-1-wangzhaolong1@huawei.com
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions