remoteproc: mediatek: Check the SCP image format
Do a sanity check on the SCP image before loading it to avoid driver crashes. Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230210031354.1335-1-tinghan.shen@mediatek.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
This commit is contained in:
parent
57f72170a2
commit
6405871820
@ -649,6 +649,7 @@ static const struct rproc_ops scp_ops = {
|
|||||||
.load = scp_load,
|
.load = scp_load,
|
||||||
.da_to_va = scp_da_to_va,
|
.da_to_va = scp_da_to_va,
|
||||||
.parse_fw = scp_parse_fw,
|
.parse_fw = scp_parse_fw,
|
||||||
|
.sanity_check = rproc_elf_sanity_check,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user