diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2021-07-21 21:43:32 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-08-23 13:19:08 +0200 |
commit | e83502ca5f1e1f03fb1393008ec22d17e7dc9882 (patch) | |
tree | 06c37c2389e478cfd1edd9033b6ff0e22c3677ea /include/linux/kallsyms.h | |
parent | 5662c967c69dfd162a0667d69bad776939bedf85 (diff) |
block: fix argument type of bio_trim()
The function bio_trim has offset and size arguments that are declared
as int.
The callers of this function use sector_t type when passing the offset
and size, e.g. drivers/md/raid1.c:narrow_write_error() and
drivers/md/raid1.c:narrow_write_error().
Change offset and size arguments to sector_t type for bio_trim(). Also,
add WARN_ON_ONCE() to catch their overflow.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/kallsyms.h')
0 files changed, 0 insertions, 0 deletions