]> asedeno.scripts.mit.edu Git - linux.git/commit
mailbox: bcm-pdc: PDC driver leaves debugfs files after removal
authorSteve Lin <steven.lin1@broadcom.com>
Mon, 14 Nov 2016 18:25:57 +0000 (13:25 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2016 14:40:19 +0000 (20:10 +0530)
commit9310f1ded44067b2da61fa0471ca5b7768dd28ae
tree5ca14a8d0da8ff54d17d2981ac9151a883f248fd
parent9fb0f9ac54b393ddfe49be7da7751f02bb133db6
mailbox: bcm-pdc: PDC driver leaves debugfs files after removal

Minor fix to ensure that debugfs stats pseudo-files are
removed when driver module is unloaded.  Previously, the call to
debugfs_remove_recursive() was never being called since the
directory was not empty, and a seg fault would occur if another
process tried to access these leftover files.

Signed-off-by: Steve Lin <steven.lin1@broadcom.com>
Signed-off-by: Rob Rice <rob.rice@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-pdc-mailbox.c