47 lines
1.3 KiB
Diff
47 lines
1.3 KiB
Diff
From 46a3988a671bfb151c03f75b6caae17063af77bf Mon Sep 17 00:00:00 2001
|
|
From: "zhiwei.zhang" <zhiwei.zhang@amlogic.com>
|
|
Date: Tue, 11 Aug 2026 10:40:12 +0000
|
|
Subject: [PATCH 1/3] camera: fix crash on reboot command [1/1]
|
|
|
|
PD#SWPL-283776
|
|
|
|
Problem:
|
|
global variable not initialized, null pointer
|
|
|
|
Solution:
|
|
define and init offline thread info.
|
|
|
|
Verify:
|
|
a9 yocto.
|
|
|
|
Change-Id: If19f341300e0304d70c32445da21da63a6a48734
|
|
Signed-off-by: zhiwei.zhang <zhiwei.zhang@amlogic.com>
|
|
---
|
|
aml_isp5/driver/isp5/c4-isp-dev.c | 10 +++++++++-
|
|
1 file changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/aml_isp5/driver/isp5/c4-isp-dev.c b/aml_isp5/driver/isp5/c4-isp-dev.c
|
|
index 76e97346..2c6518c2 100644
|
|
--- a/aml_isp5/driver/isp5/c4-isp-dev.c
|
|
+++ b/aml_isp5/driver/isp5/c4-isp-dev.c
|
|
@@ -59,7 +59,15 @@ enum c4_isp_debug_idx {
|
|
ISP_DEBUG_NUM
|
|
};
|
|
|
|
-static struct c4_isp_thread_info thread_info;
|
|
+static struct c4_isp_thread_info thread_info = {
|
|
+ .thread = NULL,
|
|
+ .pending = {.prev = &thread_info.pending, .next = &thread_info.pending},
|
|
+ .buff = NULL,
|
|
+ .buff_lock = __SPIN_LOCK_UNLOCKED(thread_info.buff_lock),
|
|
+ .done = COMPLETION_INITIALIZER(thread_info.done),
|
|
+ .start_count = 0,
|
|
+};
|
|
+
|
|
static struct c4_isp_data_buffer rdma_febe_orig;
|
|
static struct c4_isp_data_buffer rdma_disp_orig;
|
|
static struct c4_ipp_rdma_info rdma_ipp_info;
|
|
--
|
|
2.43.2
|
|
|