summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaliy Cherepanov <v.cherepanov@samsung.com>2015-09-21 20:59:01 +0300
committerVitaliy Cherepanov <v.cherepanov@samsung.com>2015-09-21 20:59:01 +0300
commit57f9522ba16b0742e4de38816507e5ab002fb2dc (patch)
tree367a2273a8d65f175fb3d770f39d513bd9bca55e
parent127a01933e7b67881859d8e1dc7d004a924b830e (diff)
downloadswap-modules-57f9522ba16b0742e4de38816507e5ab002fb2dc.tar.gz
swap-modules-57f9522ba16b0742e4de38816507e5ab002fb2dc.tar.bz2
swap-modules-57f9522ba16b0742e4de38816507e5ab002fb2dc.zip
[FIX] kernel panic on second DA start
Change-Id: Iee25a61f60450256c1908446e1a9ca3318639b4e Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
-rw-r--r--preload/preload_debugfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/preload/preload_debugfs.c b/preload/preload_debugfs.c
index c290f7af..ba3fd667 100644
--- a/preload/preload_debugfs.c
+++ b/preload/preload_debugfs.c
@@ -80,10 +80,15 @@ static void clean_loader_info(void)
{
if (__loader_info.path != NULL)
kfree(__loader_info.path);
+ __loader_info.path = NULL;
dentry_lock();
if (__loader_info.dentry != NULL)
put_dentry(__loader_info.dentry);
+
+ __loader_info.dentry = NULL;
+ __loader_info.offset = 0;
+
dentry_unlock();
}