net/can: single_open_net needs to be paired with single_release_net
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Apr 2018 10:16:13 +0000 (12:16 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 14 May 2018 14:13:41 +0000 (16:13 +0200)
commit441bc62741e6e7f8d428b827c2a7b482a467fc42
tree2a1fe7df88635a14c15950c60e32bfde2a985dd1
parent67b8d5c7081221efa252e111cd52532ec6d4266f
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>
net/can/bcm.c
net/can/proc.c