]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: mbx: fix up debugfs file creation
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Feb 2019 18:24:47 +0000 (19:24 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 8 Feb 2019 18:24:47 +0000 (19:24 +0100)
commit413dbcf28d4259730a97bef90a633158f64cf3a3
treec981009001e3a164e1eea49247c24654c2c6498f
parent8b6019ce4e3abeb506d37b8b61f9a62ea37550c7
fbdev: mbx: fix up debugfs file creation

There is no need to keep the dentries around for the individual debugfs
files, just delete the whole directory all at once at shutdown instead.

This also fixes a tiny memory leak where the memory for the pointers to
the file dentries was never freed when the device shut down, as well as
making the logic of the code a lot simpler.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/mbx/mbxdebugfs.c
drivers/video/fbdev/mbx/mbxfb.c