ksmbd: Use struct_size() to improve smb_direct_rdma_xmit()
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 28 Sep 2024 15:00:30 +0000 (17:00 +0200)
committerSteve French <stfrench@microsoft.com>
Tue, 1 Oct 2024 19:50:51 +0000 (14:50 -0500)
commit9c383396362a4d1db99ed5240f4708d443361ef3
tree8519cc113f5ae22ae30aec8f9059e777973decef
parent0801c1374ab1552bd7376370987142ff77912527
ksmbd: Use struct_size() to improve smb_direct_rdma_xmit()

Use struct_size() to calculate the number of bytes to allocate for a
new message.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/transport_rdma.c