aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorMaximilian Güntner <[email protected]>2024-12-12 16:19:11 +0000
committerJakub Kicinski <[email protected]>2024-12-15 21:13:40 +0000
commit329365dc46b8cedb9c4fd5cfb80b29cb85b84c39 (patch)
tree78dd7f28814da7d0f3dede4a353c443be32da2e8 /net/unix/unix_bpf.c
parentMerge branch 'dp83822-gpio2' (diff)
downloadkernel-329365dc46b8cedb9c4fd5cfb80b29cb85b84c39.tar.gz
kernel-329365dc46b8cedb9c4fd5cfb80b29cb85b84c39.zip
ipv4: output metric as unsigned int
adding a route metric greater than 0x7fff_ffff leads to an unintended wrap when printing the underlying u32 as an unsigned int (`%d`) thus incorrectly rendering the metric as negative. Formatting using `%u` corrects the issue. Signed-off-by: Maximilian Güntner <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions