1 --- a/kernel-module/xt_RTPENGINE.c
2 +++ b/kernel-module/xt_RTPENGINE.c
3 @@ -3781,7 +3781,6 @@ static inline ssize_t proc_control_read_
4 struct rtpengine_table *t;
6 enum rtpengine_command cmd;
7 - char scratchbuf[512];
8 size_t readlen, writelen, writeoffset;
11 @@ -3823,13 +3822,9 @@ static inline ssize_t proc_control_read_
14 // do we need an extra large storage buffer?
15 - if (buflen > sizeof(scratchbuf)) {
16 - msg.storage = kmalloc(buflen, GFP_KERNEL);
21 - msg.storage = scratchbuf;
22 + msg.storage = kmalloc(buflen, GFP_KERNEL);
27 inode = file->f_path.dentry->d_inode;
28 @@ -3942,16 +3937,14 @@ static inline ssize_t proc_control_read_
32 - if (msg.storage != scratchbuf)
41 - if (msg.storage != scratchbuf)
46 static ssize_t proc_control_write(struct file *file, const char __user *ubuf, size_t buflen, loff_t *off) {