aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2019-11-01 14:14:47 -0700
committerMartin K. Petersen <[email protected]>2019-11-01 20:28:03 -0400
commitb1335f5b0486f61fb66b123b40f8e7a98e49605d (patch)
treeedf003596a36439dddf3d7c441349a4415b3a247 /tools/perf/scripts/python/net_dropmonitor.py
parent64dc4f346b5be50a96f41d628e88c0fdb0ee0254 (diff)
scsi: core: scsi_trace: Use get_unaligned_be*()
This patch fixes an unintended sign extension on left shifts. From Colin King: "Shifting a u8 left will cause the value to be promoted to an integer. If the top bit of the u8 is set then the following conversion to an u64 will sign extend the value causing the upper 32 bits to be set in the result." Fix this by using get_unaligned_be*() instead. Fixes: bf8162354233 ("[SCSI] add scsi trace core functions and put trace points") Cc: Christoph Hellwig <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Douglas Gilbert <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reported-by: Colin Ian King <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions