From aa3fb813953c1d11f19e463d6dfb5ae9f092f9b1 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 20 Mar 2025 13:26:14 -0400 Subject: [PATCH] MT#55283 store pointer to table in re_shm Change-Id: I61ff5ebb0115f83100645e53f7a52789c63780c2 --- kernel-module/xt_RTPENGINE.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index d4023a77a..48afe18d1 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -477,6 +477,7 @@ struct re_hmac { struct re_shm { void *head; + struct rtpengine_table *table; struct list_head list_entry; }; @@ -2833,8 +2834,6 @@ static int proc_control_mmap(struct file *file, struct vm_area_struct *vma) { return -ENOMEM; } - shm->head = pages; - // get our table inode = file->f_path.dentry->d_inode; id = (uint32_t) (unsigned long) PDE_DATA(inode); @@ -2845,6 +2844,9 @@ static int proc_control_mmap(struct file *file, struct vm_area_struct *vma) { return -ENOENT; } + shm->head = pages; + shm->table = t; + vma->vm_private_data = shm; vma->vm_ops = &vm_mmap_ops;