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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:19:00 +0000 (16:19 -0800)
commit3f5aab7efd402b7494eeacb00f352f8f20b40d2d
tree242997f680753576f063a15d46f35bb199b9e70e
parent14bafd198066480568967e5fa445ce3a7bbbad98
SUNRPC: use request size to initialize bio_vec in svc_udp_sendto()

[ Upstream commit 1d9cabe2817edd215779dc9c2fe5e7ab9aac0704 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/svcsock.c