diff options
author | Jim Rees <rees@umich.edu> | 2013-05-17 17:33:00 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-05-21 11:02:03 -0400 |
commit | 1a9357f443d64aa41e9b0dc414953663a6fcca19 (patch) | |
tree | 590818d77f07ab18197167024779738ec2a01f12 /net | |
parent | b6040f9706c4c81cc50b50855ed70840f022bebb (diff) | |
download | kernel_goldelico_gta04-1a9357f443d64aa41e9b0dc414953663a6fcca19.zip kernel_goldelico_gta04-1a9357f443d64aa41e9b0dc414953663a6fcca19.tar.gz kernel_goldelico_gta04-1a9357f443d64aa41e9b0dc414953663a6fcca19.tar.bz2 |
nfsd: avoid undefined signed overflow
In C, signed integer overflow results in undefined behavior, but unsigned
overflow wraps around. So do the subtraction first, then cast to signed.
Reported-by: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Signed-off-by: Jim Rees <rees@umich.edu>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions