aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorAkira Fujita <[email protected]>2009-09-16 14:28:22 -0400
committerTheodore Ts'o <[email protected]>2009-09-16 14:28:22 -0400
commit70d5d3dcea47c16058d2b093c29e07fdf61b56ad (patch)
tree82ff7d71973f259d8197bbc7c05461e978324c02 /lib/cpu-notifier-error-inject.c
parent5f3481e9a80c240f169b36ea886e2325b9aeb745 (diff)
ext4: Fix wrong comparisons in mext_check_arguments()
The mext_check_arguments() function in move_extents.c has wrong comparisons. orig_start which is passed from user-space is block unit, but i_size of inode is byte unit, therefore the checks do not work fine. This mis-check leads to the overflow of 'len' and then hits BUG_ON() in ext4_move_extents(). The patch fixes this issue. Signed-off-by: Akira Fujita <[email protected]> Reviewed-by: Greg Freemyer <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions