mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
rds: Fix warning.
[ Upstream commitd84e7bc059] >> net/rds/send.c:1109:42: warning: Using plain integer as NULL pointer Fixes:ea010070d0("net/rds: fix warn in rds_message_alloc_sgs") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7e6af1fa80
commit
382bc84da9
@@ -1106,9 +1106,11 @@ int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len)
|
||||
sock_flag(rds_rs_to_sk(rs), SOCK_ZEROCOPY));
|
||||
int num_sgs = ceil(payload_len, PAGE_SIZE);
|
||||
int namelen;
|
||||
struct rds_iov_vector_arr vct = {0};
|
||||
struct rds_iov_vector_arr vct;
|
||||
int ind;
|
||||
|
||||
memset(&vct, 0, sizeof(vct));
|
||||
|
||||
/* expect 1 RDMA CMSG per rds_sendmsg. can still grow if more needed. */
|
||||
vct.incr = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user