Skip to content

Commit

Permalink
rds: Fix warning.
Browse files Browse the repository at this point in the history
[ Upstream commit d84e7bc0595a7e146ad0ddb80b240cea77825245 ]

>> net/rds/send.c:1109:42: warning: Using plain integer as NULL pointer

Fixes: ea010070d0a7 ("net/rds: fix warn in rds_message_alloc_sgs")
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
davem330 authored and gregkh committed Jul 10, 2019
1 parent 7e6af1f commit 382bc84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/rds/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 382bc84

Please sign in to comment.