summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/mbx/mbxfb.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-08 21:24:47 +0300
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-02-08 21:24:47 +0300
commit72aed9e31344a62e6cab2c49a27fd0bc740add63 (patch)
treec981009001e3a164e1eea49247c24654c2c6498f /drivers/video/fbdev/mbx/mbxfb.c
parent60d2fa0dad0687b4d227aacc042ccdbea1782d87 (diff)
downloadlinux-72aed9e31344a62e6cab2c49a27fd0bc740add63.tar.xz
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>
Diffstat (limited to 'drivers/video/fbdev/mbx/mbxfb.c')
-rw-r--r--drivers/video/fbdev/mbx/mbxfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mbx/mbxfb.c b/drivers/video/fbdev/mbx/mbxfb.c
index 539b85da0897..6ded480a69b4 100644
--- a/drivers/video/fbdev/mbx/mbxfb.c
+++ b/drivers/video/fbdev/mbx/mbxfb.c
@@ -74,7 +74,7 @@ struct mbxfb_info {
u32 pseudo_palette[MAX_PALETTES];
#ifdef CONFIG_FB_MBX_DEBUG
- void *debugfs_data;
+ struct dentry *debugfs_dir;
#endif
};