aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-05-19 16:32:23 +0300
committerJason Gunthorpe <jgg@mellanox.com>2020-05-19 20:40:20 -0300
commitb386cd65d961e29710ef6ad84bc788f0a7e9d64e (patch)
treea128fe4630cbba6c7e18c8492a06aaae30a9b477 /tools/perf/scripts/python/net_dropmonitor.py
parentRDMA/srpt: Fix disabling device management (diff)
downloadlinux-b386cd65d961e29710ef6ad84bc788f0a7e9d64e.tar.gz
linux-b386cd65d961e29710ef6ad84bc788f0a7e9d64e.zip
RDMA/rtrs: Fix some signedness bugs in error handling
The problem is that "req->sg_cnt" is an unsigned int so if "nr" is negative, it gets type promoted to a high positive value and the condition is false. This patch fixes it by handling negatives separately. Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality") Link: https://lore.kernel.org/r/20200519133223.GN2078@kadam Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Jack Wang <jinpu.wang@cloud.ionos.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions