diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2017-08-23 09:03:04 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2017-08-24 20:59:43 -0700 |
commit | b974696da1cfc5aa0c29ed97dc8f6c239899e64b (patch) | |
tree | 264b840fb18b79f50c5d21bf6f44ee5880a8dad3 /drivers/memory | |
parent | 9a51544774a57fcb94994a61860a17f9e63a8d7b (diff) | |
download | linux-b974696da1cfc5aa0c29ed97dc8f6c239899e64b.tar.bz2 |
mtd: nandsim: remove debugfs entries in error path
The debugfs entries must be removed before an error is returned in the
probe function. Otherwise another try to load the module fails and when
the debugfs files are accessed without the module loaded, the kernel
still tries to call a function in that module.
Fixes: 5346c27c5fed ("mtd: nandsim: Introduce debugfs infrastructure")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Richard Weinberger <richard@nod.at>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions