remoteproc/mediatek: fix invalid use of sizeof in scp_ipi_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 9 May 2020 08:42:37 +0000 (08:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:42 +0000 (17:48 +0200)
commitbdf48c0ae30766e61923d045f0a41ce1316a7f53
tree33525666e65817d6203fb65b296c5db669821f39
parent63aca0b1acb939f2cfa9e087a15f8ffa49236207
remoteproc/mediatek: fix invalid use of sizeof in scp_ipi_init()

[ Upstream commit 8096f80a5c09b716be207eb042c4e40d6cdefbd2 ]

sizeof() when applied to a pointer typed expression gives the
size of the pointer, not that of the pointed data.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Fixes: 63c13d61eafe ("remoteproc/mediatek: add SCP support for mt8183")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200509084237.36293-1-weiyongjun1@huawei.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/mtk_scp.c