From: Srinivas Kandagatla Date: Tue, 19 Jun 2018 15:12:04 +0000 (+0100) Subject: slimbus: messaging: initialize completion correctly X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ffa2d92191286f47b993c62013c351b397400708;p=openwrt%2Fstaging%2Fblogic.git slimbus: messaging: initialize completion correctly 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 Signed-off-by: Greg Kroah-Hartman --- 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; } /**