Skip to contentSkip to conversation

rds: Fix uninitialized variable

PATCH In review Håkon Bugge 1 participant 2 messages Oct 24, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rds: Fix uninitialized variable

send_flags needs to be initialized before calling
rds_ib_set_wr_signal_state().

---
 net/rds/ib_send.c | 1 +
 1 file changed, 1 insertion(+)
net/rds/ib_send.c +1 -0
index 6ab39db..8f46755 100644
@@ -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;
Signature · 1 line
1.8.3.1
#1 lore raw

Ignore this, sent the old one.

Håkon

Quoted 29 lines · Håkon Bugge

send_flags needs to be initialized before calling
rds_ib_set_wr_signal_state().

---
net/rds/ib_send.c | 1 +

1 file changed, 1 insertion(+)
net/rds/ib_send.c +1 -0
index 6ab39db..8f46755 100644
@@ -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;
Signature · 6 lines
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html