diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-04-22 12:14:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-19 11:13:04 +0300 |
commit | 0a9decf2dd4d859bdc791165abc2b646a85dd00f (patch) | |
tree | 0b8ea56cfad94018071bf6230344c77c2100abbb /fs | |
parent | dd41a0e515322221954258e2fd27b726bef6383a (diff) | |
download | linux-0a9decf2dd4d859bdc791165abc2b646a85dd00f.tar.xz |
SUNRPC: fix ternary sign expansion bug in tracing
[ Upstream commit cb579086536f6564f5846f89808ec394ef8b8621 ]
This code is supposed to pass negative "err" values for tracing but it
passes positive values instead. The problem is that the
trace_svcsock_tcp_send() function takes a long but "err" is an int and
"sent" is a u32. The negative is first type promoted to u32 so it
becomes a high positive then it is promoted to long and it stays
positive.
Fix this by casting "err" directly to long.
Fixes: 998024dee197 ("SUNRPC: Add more svcsock tracepoints")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions