netfilter: xt_qtaguid: fix memory leak in seq_file handlers
authorGreg Hackmann <ghackmann@google.com>
Thu, 5 Dec 2013 01:39:27 +0000 (17:39 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:31 +0000 (13:51 -0800)
Change-Id: I15b21230d52479d008a00d9e2191dda020f00925
Signed-off-by: Greg Hackmann <ghackmann@google.com>
net/netfilter/xt_qtaguid.c

index e476b88f9d68eb030da0ea6f115d726cf2b4c450..4a16829969a68b9560f0c63ff6ef175886683458 100644 (file)
@@ -1496,7 +1496,7 @@ static const struct file_operations proc_iface_stat_fmt_fops = {
        .open           = proc_iface_stat_fmt_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = seq_release_private,
 };
 
 static int __init iface_stat_init(struct proc_dir_entry *parent_procdir)
@@ -2904,7 +2904,7 @@ static const struct file_operations proc_qtaguid_ctrl_fops = {
        .read           = seq_read,
        .write          = qtaguid_ctrl_proc_write,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = seq_release_private,
 };
 
 static const struct seq_operations proc_qtaguid_stats_seqops = {