feat: owloysius - dynamic init function invocator
[lunaix-os.git] / lunaix-os / kernel / debug / trace.c
index 8c5c1800fd6676ab9ec65d959eea2dc17cbf7706..1c909197bc8f0a594ba34ed4f91c73dabdc6e917 100644 (file)
@@ -104,6 +104,10 @@ trace_walkback(struct trace_record* tb_buffer,
         i++;
     }
 
+    if (!valid_fp((ptr_t)frame)) {
+        frame = NULL;
+    }
+
     if (last_fp) {
         *last_fp = (ptr_t)frame;
     }