diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index 658fd0b76..feda7b793 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -1481,7 +1481,10 @@ static ssize_t proc_blist_read(struct file *f, char __user *b, size_t l, loff_t if (!g) goto err; + err = -ENOMEM; opp = kzalloc(sizeof(*opp), GFP_KERNEL); + if (!opp) + goto err; memcpy(&opp->target, &g->target, sizeof(opp->target));