diff mbox series

[3/4] slimbus: messaging: initialize completion correctly

Message ID 20180619151205.11300-4-srinivas.kandagatla@linaro.org
State New
Headers show
Series slimbus: fixes for v4.18 | expand

Commit Message

Srinivas Kandagatla June 19, 2018, 3:12 p.m. UTC
slim_val_inf can contain random value from stack, make sure the completion
is initialized to NULL while filling the msg.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

---
 drivers/slimbus/messaging.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.16.2
diff mbox series

Patch

diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c
index 1c57b631031a..e3605ed1c459 100644
--- a/drivers/slimbus/messaging.c
+++ b/drivers/slimbus/messaging.c
@@ -246,6 +246,7 @@  static void slim_fill_msg(struct slim_val_inf *msg, u32 addr,
 	msg->num_bytes = count;
 	msg->rbuf = rbuf;
 	msg->wbuf = wbuf;
+	msg->comp = NULL;
 }
 
 /**