MT#55283 store pointer to table in re_shm

Change-Id: I61ff5ebb0115f83100645e53f7a52789c63780c2
pull/1923/head
Richard Fuchs 2 months ago
parent fa938c1ec4
commit aa3fb81395

@ -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;

Loading…
Cancel
Save