diff options
author | Jonathan Derrick <jonathan.derrick@linux.dev> | 2023-04-24 19:14:38 -0600 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-04-28 09:21:06 -0700 |
commit | b1211978ecf19bceb63a04f53fea4b5d73832a4a (patch) | |
tree | 4d66dbd9e45ff52b98165fa378f141f7fab44bad /include/drm/ttm | |
parent | fc05e06e6098ca2c28f7a10da0e00aeea20fa59e (diff) | |
download | linux-stable-b1211978ecf19bceb63a04f53fea4b5d73832a4a.tar.gz linux-stable-b1211978ecf19bceb63a04f53fea4b5d73832a4a.tar.bz2 linux-stable-b1211978ecf19bceb63a04f53fea4b5d73832a4a.zip |
md: Fix bitmap offset type in sb writer
Bitmap offset is allowed to be negative, indicating that bitmap precedes
metadata. Change the type back from sector_t to loff_t to satisfy
conditionals and calculations.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/linux-raid/CAPhsuW6HuaUJ5WcyPajVgUfkQFYp2D_cy1g6qxN4CU_gP2=z7g@mail.gmail.com/
Fixes: 10172f200b67 ("md: Fix types in sb writer")
Signed-off-by: Jonathan Derrick <jonathan.derrick@linux.dev>
Suggested-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230425011438.71046-1-jonathan.derrick@linux.dev
Diffstat (limited to 'include/drm/ttm')
0 files changed, 0 insertions, 0 deletions