Commit 441bc627 authored by Christoph Hellwig's avatar Christoph Hellwig

net/can: single_open_net needs to be paired with single_release_net

Otherwise we will leak a reference to the network namespace.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 67b8d5c7
...@@ -249,7 +249,7 @@ static const struct file_operations bcm_proc_fops = { ...@@ -249,7 +249,7 @@ static const struct file_operations bcm_proc_fops = {
.open = bcm_proc_open, .open = bcm_proc_open,
.read = seq_read, .read = seq_read,
.llseek = seq_lseek, .llseek = seq_lseek,
.release = single_release, .release = single_release_net,
}; };
#endif /* CONFIG_PROC_FS */ #endif /* CONFIG_PROC_FS */
......
...@@ -279,7 +279,7 @@ static const struct file_operations can_stats_proc_fops = { ...@@ -279,7 +279,7 @@ static const struct file_operations can_stats_proc_fops = {
.open = can_stats_proc_open, .open = can_stats_proc_open,
.read = seq_read, .read = seq_read,
.llseek = seq_lseek, .llseek = seq_lseek,
.release = single_release, .release = single_release_net,
}; };
static int can_reset_stats_proc_show(struct seq_file *m, void *v) static int can_reset_stats_proc_show(struct seq_file *m, void *v)
...@@ -449,7 +449,7 @@ static const struct file_operations can_rcvlist_sff_proc_fops = { ...@@ -449,7 +449,7 @@ static const struct file_operations can_rcvlist_sff_proc_fops = {
.open = can_rcvlist_sff_proc_open, .open = can_rcvlist_sff_proc_open,
.read = seq_read, .read = seq_read,
.llseek = seq_lseek, .llseek = seq_lseek,
.release = single_release, .release = single_release_net,
}; };
...@@ -492,7 +492,7 @@ static const struct file_operations can_rcvlist_eff_proc_fops = { ...@@ -492,7 +492,7 @@ static const struct file_operations can_rcvlist_eff_proc_fops = {
.open = can_rcvlist_eff_proc_open, .open = can_rcvlist_eff_proc_open,
.read = seq_read, .read = seq_read,
.llseek = seq_lseek, .llseek = seq_lseek,
.release = single_release, .release = single_release_net,
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment