SUNRPC: use request size to initialize bio_vec in svc_udp_sendto()
authorLucas Stach <l.stach@pengutronix.de>
Wed, 17 Jan 2024 21:06:28 +0000 (22:06 +0100)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 17 Jan 2024 21:54:33 +0000 (16:54 -0500)
commit1d9cabe2817edd215779dc9c2fe5e7ab9aac0704
tree64990395cc6ce337d4a9579b87d4e34fe6099915
parent17419aefcbfd9891863e8b8132f0bca9a6b2984e
SUNRPC: use request size to initialize bio_vec in svc_udp_sendto()

Use the proper size when setting up the bio_vec, as otherwise only
zero-length UDP packets will be sent.

Fixes: baabf59c2414 ("SUNRPC: Convert svc_udp_sendto() to use the per-socket bio_vec array")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svcsock.c