aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorBaokun Li <[email protected]>2023-07-24 20:10:57 +0800
committerTheodore Ts'o <[email protected]>2023-07-29 00:02:30 -0400
commit43bbddc067883d94de7a43d5756a295439fbe37d (patch)
treeaf9e146a085811c4fa90d97e94bd670ea945b1cf /net/lapb/lapb_timer.c
parent6eaae198076080886b9e7d57f4ae06fa782f90ef (diff)
ext4: add two helper functions extent_logical_end() and pa_logical_end()
When we use lstart + len to calculate the end of free extent or prealloc space, it may exceed the maximum value of 4294967295(0xffffffff) supported by ext4_lblk_t and cause overflow, which may lead to various problems. Therefore, we add two helper functions, extent_logical_end() and pa_logical_end(), to limit the type of end to loff_t, and also convert lstart to loff_t for calculation to avoid overflow. Signed-off-by: Baokun Li <[email protected]> Reviewed-by: Ritesh Harjani (IBM) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions