can: fix memory leak in initial namespace support
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 25 Apr 2017 06:19:38 +0000 (08:19 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 25 Apr 2017 07:04:27 +0000 (09:04 +0200)
commita7bbd28f04ce4df26f07e96c4a743d529da99348
tree51e8dc609713f0d6a4f6ecb84166420ceb2abe6a
parent51f3baad7de943780ce0c17bd7975df567dd6e14
can: fix memory leak in initial namespace support

The can_rx_alldev_list is a per-net data structure now and allocated in
can_pernet_init(). Make sure the memory is free'd in can_pernet_exit() too.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/af_can.c