mailbox: mtk-cmdq: Fix uninitialized variable in cmdq_mbox_flush()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 22 Jun 2021 13:08:52 +0000 (16:08 +0300)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 26 Jun 2021 16:41:47 +0000 (11:41 -0500)
commitcc3eb51814d0f31671d57e85d4912403a11506e9
tree8c4d540b77aa937f0b9b11b545dc68b5f84787e8
parentc0d580cefa46f28873202b7e3df9313a570633bd
mailbox: mtk-cmdq: Fix uninitialized variable in cmdq_mbox_flush()

The "cb" pointer needs to be initialized before can assign
"data.data = cb->data;".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-cmdq-mailbox.c