OSDN Git Service

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)
commit72aed9e31344a62e6cab2c49a27fd0bc740add63
treec981009001e3a164e1eea49247c24654c2c6498f
parent60d2fa0dad0687b4d227aacc042ccdbea1782d87
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