Skip to content
Snippets Groups Projects
Commit 5fe7702e authored by Jean-Jacques Hiblot's avatar Jean-Jacques Hiblot Committed by Simon Glass
Browse files

blk: dm: make blk_create_device() take a number of block instead of a size


There is an overflow problem when taking the size instead of the number
of blocks in blk_create_device(). This results in a wrong device size: the
device apparent size is its real size  modulo 4GB.
Using the number of blocks instead of the device size fixes the problem and
is more coherent with the internals of the block layer.

Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent c98ac348
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment