diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-06-19 16:12:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-07 17:23:12 +0200 |
commit | ffa2d92191286f47b993c62013c351b397400708 (patch) | |
tree | 19790820ac6c1c4bc4fe456788c04ef2a8330965 /drivers/slimbus | |
parent | 057ba872d0adc9b512e455f38159f1c3616b616c (diff) |
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/slimbus')
-rw-r--r-- | drivers/slimbus/messaging.c | 1 |
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; } /** |