aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-06-05 13:20:59 +0100
committerJason Gunthorpe <[email protected]>2021-06-07 20:19:03 -0300
commit7fde2dbe03f41fd9ce0f38ebf9879e02487e5bdc (patch)
tree15fdabc43ad3f21a5f194bbbee9e622a97ae9717 /tools/perf/scripts/python/export-to-postgresql.py
parentaeb27bb76ad8197eb47890b1ff470d5faf8ec9a5 (diff)
RDMA/irdma: Fix issues with u8 left shift operation
The shifting of the u8 integer info->map[i] the left will be promoted to a 32 bit signed int and then sign-extended to a u64. In the event that the top bit of the u8 is set then all then all the upper 32 bits of the u64 end up as also being set because of the sign-extension. Fix this by casting the u8 values to a u64 before the left shift. This Link: https://lore.kernel.org/r/[email protected] Addresses-Coverity: ("Unitentional integer overflow / bad shift operation") Fixes: 3f49d6842569 ("RDMA/irdma: Implement HW Admin Queue OPs") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Shiraz Saleem <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions