diff options
author | Christoph Hellwig <hch@lst.de> | 2018-04-11 12:16:13 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-14 16:13:41 +0200 |
commit | 441bc62741e6e7f8d428b827c2a7b482a467fc42 (patch) | |
tree | 2a1fe7df88635a14c15950c60e32bfde2a985dd1 /net/can/bcm.c | |
parent | 67b8d5c7081221efa252e111cd52532ec6d4266f (diff) | |
download | linux-stable-441bc62741e6e7f8d428b827c2a7b482a467fc42.tar.gz linux-stable-441bc62741e6e7f8d428b827c2a7b482a467fc42.tar.bz2 linux-stable-441bc62741e6e7f8d428b827c2a7b482a467fc42.zip |
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: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net/can/bcm.c')
-rw-r--r-- | net/can/bcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/bcm.c b/net/can/bcm.c index ac5e5e34fee3..8073fa14e143 100644 --- a/net/can/bcm.c +++ b/net/can/bcm.c @@ -249,7 +249,7 @@ static const struct file_operations bcm_proc_fops = { .open = bcm_proc_open, .read = seq_read, .llseek = seq_lseek, - .release = single_release, + .release = single_release_net, }; #endif /* CONFIG_PROC_FS */ |