OSDN Git Service

parport: plug a sysctl register leak
authorJoel Granados <j.granados@samsung.com>
Fri, 16 Jun 2023 08:59:15 +0000 (10:59 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Sun, 18 Jun 2023 09:32:53 +0000 (02:32 -0700)
commit37e9981e33e4d308c323a56bb908aa54c8f041a8
tree71817db5bc6a87e1636507462a11647e7034265a
parent28898e260a34e840f86ca80bf0c7657d76ad3f80
parport: plug a sysctl register leak

parport registers two sysctl directories in the parport_proc_register
function but only one of them was getting unregistered in
parport_proc_unregister. Keep track of both sysctl table headers and
handle them together when (un)registering.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
drivers/parport/procfs.c