]> git.dujemihanovic.xyz Git - u-boot.git/commit
blk: host_dev: Sanity check on the size of host backing file
authorBin Meng <bmeng@tinylab.org>
Tue, 26 Sep 2023 08:43:35 +0000 (16:43 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 10 Oct 2023 20:19:43 +0000 (16:19 -0400)
commite261fbf347854c75de50dd410904b436d49a7636
tree11cca4697bf16f74ab51db4f8152b376267c067c
parent0491cb8f9b819e90d02c33c7fb73b6dc70722e0a
blk: host_dev: Sanity check on the size of host backing file

Since we are emulating a block device, its size should be multiple
of the configured block size.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/host_dev.c