This is an automatic generated email to let you know that the following patch were queued:
Subject: media: atomisp: spctrl: be sure to zero .code_addr after free Author: Mauro Carvalho Chehab <[email protected]> Date: Tue May 12 12:45:40 2020 +0200 We need that to avoid trying to double-free the driver. Signed-off-by: Mauro Carvalho Chehab <[email protected]> drivers/staging/media/atomisp/pci/runtime/spctrl/src/spctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- diff --git a/drivers/staging/media/atomisp/pci/runtime/spctrl/src/spctrl.c b/drivers/staging/media/atomisp/pci/runtime/spctrl/src/spctrl.c index ceaac8235b4b..db39fa273251 100644 --- a/drivers/staging/media/atomisp/pci/runtime/spctrl/src/spctrl.c +++ b/drivers/staging/media/atomisp/pci/runtime/spctrl/src/spctrl.c @@ -123,8 +123,10 @@ enum ia_css_err ia_css_spctrl_unload_fw(sp_ID_t sp_id) return IA_CSS_ERR_INVALID_ARGUMENTS; /* freeup the resource */ - if (spctrl_cofig_info[sp_id].code_addr) + if (spctrl_cofig_info[sp_id].code_addr) { hmm_free(spctrl_cofig_info[sp_id].code_addr); + spctrl_cofig_info[sp_id].code_addr = mmgr_NULL; + } spctrl_loaded[sp_id] = false; return IA_CSS_SUCCESS; } _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
