linux-stable/include/linux/sunrpc
Dan Carpenter e87cf8a28e SUNRPC: clean up integer overflow check
This integer overflow check works as intended but Clang and GCC and warn
about it when compiling with W=1.

    include/linux/sunrpc/xdr.h:539:17: error: comparison is always false
    due to limited range of data type [-Werror=type-limits]

Use size_mul() to prevent the integer overflow.  It silences the warning
and it's cleaner as well.

Reported-by: Dmitry Antipov <dmantipov@yandex.ru>
Closes: https://lore.kernel.org/all/20230601143332.255312-1-dmantipov@yandex.ru/
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2023-08-24 13:24:15 -04:00
..
addr.h
auth.h SUNRPC: Add RPC client support for the RPC_AUTH_TLS auth flavor 2023-06-19 12:18:36 -04:00
auth_gss.h
bc_xprt.h
cache.h
clnt.h NFS: add sysfs shutdown knob 2023-06-19 15:08:12 -04:00
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
metrics.h
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
rpc_rdma_cid.h
sched.h
stats.h
svc.h Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
svc_rdma.h svcrdma: Revert 2a1e4f21d8 ("svcrdma: Normalize Send page handling") 2023-06-12 12:16:36 -04:00
svc_rdma_pcl.h
svc_xprt.h
svcauth.h
svcauth_gss.h
svcsock.h nfsd: fix double fget() bug in __write_ports_addfd() 2023-05-31 09:57:14 -04:00
timer.h
types.h
xdr.h SUNRPC: clean up integer overflow check 2023-08-24 13:24:15 -04:00
xprt.h SUNRPC: Add a TCP-with-TLS RPC transport class 2023-06-19 12:28:10 -04:00
xprtmultipath.h
xprtrdma.h
xprtsock.h SUNRPC: Add a TCP-with-TLS RPC transport class 2023-06-19 12:28:10 -04:00