msm: camera: common: Add cam_free_clear to cam_compat
Kernel 5.10 and up have renamed kzfree to kfree_secure. As such, we have added a cam_free_clear function to redirect all uses of kzfree uses to the appropriate function depending on the kernel version the driver is built against. CRs-Fixed: 2835738 Change-Id: I72d191c9fb0454a4dbb1392894a909e81fe07caa Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
e7f96de4c3
commit
2c67e897da
@@ -19,6 +19,7 @@
|
||||
#include "hfi_intf.h"
|
||||
#include "cam_icp_hw_mgr_intf.h"
|
||||
#include "cam_debug_util.h"
|
||||
#include "cam_compat.h"
|
||||
|
||||
#define HFI_VERSION_INFO_MAJOR_VAL 1
|
||||
#define HFI_VERSION_INFO_MINOR_VAL 1
|
||||
@@ -882,7 +883,7 @@ void cam_hfi_deinit(void)
|
||||
g_hfi->cmd_q_state = false;
|
||||
g_hfi->msg_q_state = false;
|
||||
|
||||
kzfree(g_hfi);
|
||||
cam_free_clear((void *)g_hfi);
|
||||
g_hfi = NULL;
|
||||
|
||||
err:
|
||||
|
Reference in New Issue
Block a user