aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-10-07 11:52:39 +0300
committerIlya Dryomov <[email protected]>2023-10-09 13:35:24 +0200
commit07bb00ef00ace88dd6f695fadbba76565756e55c (patch)
tree4b3c29538b04242b6750f2fdc5ac217c401abe8a /scripts/gdb/linux/utils.py
parent7563cf17dce0a875ba3d872acdc63a78ea344019 (diff)
ceph: fix type promotion bug on 32bit systems
In this code "ret" is type long and "src_objlen" is unsigned int. The problem is that on 32bit systems, when we do the comparison signed longs are type promoted to unsigned int. So negative error codes from do_splice_direct() are treated as success instead of failure. Cc: [email protected] Fixes: 1b0c3b9f91f0 ("ceph: re-org copy_file_range and fix some error paths") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions