mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
media: iris: fix error code in iris_load_fw_to_memory()
Return -ENOMEM if memremap() fails. Don't return success.
Fixes: d19b163356 ("media: iris: implement video firmware load/unload")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
bf462ef8c5
commit
e68c3c50a7
|
|
@ -53,8 +53,10 @@ static int iris_load_fw_to_memory(struct iris_core *core, const char *fw_name)
|
|||
}
|
||||
|
||||
mem_virt = memremap(mem_phys, res_size, MEMREMAP_WC);
|
||||
if (!mem_virt)
|
||||
if (!mem_virt) {
|
||||
ret = -ENOMEM;
|
||||
goto err_release_fw;
|
||||
}
|
||||
|
||||
ret = qcom_mdt_load(dev, firmware, fw_name,
|
||||
pas_id, mem_virt, mem_phys, res_size, NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user