net: Limit socket I/O iovec total length to INT_MAX.
[firefly-linux-kernel-4.4.55.git] / net / rds / recv.c
index fdff33c7b432448b43d31ce76fc3fd224156f9ab..6a2654ad3628cfa103f80c40735abd8cb0782f6c 100644 (file)
@@ -296,7 +296,7 @@ static int rds_still_queued(struct rds_sock *rs, struct rds_incoming *inc,
 int rds_notify_queue_get(struct rds_sock *rs, struct msghdr *msghdr)
 {
        struct rds_notifier *notifier;
-       struct rds_rdma_notify cmsg;
+       struct rds_rdma_notify cmsg = { 0 }; /* fill holes with zero */
        unsigned int count = 0, max_messages = ~0U;
        unsigned long flags;
        LIST_HEAD(copy);