summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2018-06-19 18:12:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-07 18:23:12 +0300
commitffa2d92191286f47b993c62013c351b397400708 (patch)
tree19790820ac6c1c4bc4fe456788c04ef2a8330965 /drivers
parent057ba872d0adc9b512e455f38159f1c3616b616c (diff)
downloadlinux-ffa2d92191286f47b993c62013c351b397400708.tar.xz
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 <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/slimbus/messaging.c1
1 files changed, 1 insertions, 0 deletions
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;
}
/**