summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHåkon Bugge <Haakon.Bugge@oracle.com>2017-10-24 18:17:18 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-26 10:34:38 +0200
commite9a0b99804ff662d02b78a556a84e22308066fe1 (patch)
tree4a1f083c06da903a485d5397811c6bae47196901
parentMerge tag 'linux-can-fixes-for-4.14-20171024' of git://git.kernel.org/pub/scm... (diff)
downloadlinux-e9a0b99804ff662d02b78a556a84e22308066fe1.tar.xz
linux-e9a0b99804ff662d02b78a556a84e22308066fe1.zip
rds: ib: Fix uninitialized variable
send_flags needs to be initialized before calling rds_ib_set_wr_signal_state(). Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/rds/ib_send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index 6ab39dbcca01..8f46755477ae 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -792,6 +792,7 @@ int rds_ib_xmit_atomic(struct rds_connection *conn, struct rm_atomic_op *op)
send->s_atomic_wr.compare_add_mask = op->op_m_fadd.nocarry_mask;
send->s_atomic_wr.swap_mask = 0;
}
+ send->s_wr.send_flags = 0;
nr_sig = rds_ib_set_wr_signal_state(ic, send, op->op_notify);
send->s_atomic_wr.wr.num_sge = 1;
send->s_atomic_wr.wr.next = NULL;