diff options
Diffstat (limited to 'fs/ecryptfs/messaging.c')
-rw-r--r-- | fs/ecryptfs/messaging.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/messaging.c b/fs/ecryptfs/messaging.c index 96ef51489e01..295e7fa56755 100644 --- a/fs/ecryptfs/messaging.c +++ b/fs/ecryptfs/messaging.c | |||
@@ -291,8 +291,7 @@ int ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon) | |||
291 | if (daemon->user_ns) | 291 | if (daemon->user_ns) |
292 | put_user_ns(daemon->user_ns); | 292 | put_user_ns(daemon->user_ns); |
293 | mutex_unlock(&daemon->mux); | 293 | mutex_unlock(&daemon->mux); |
294 | memset(daemon, 0, sizeof(*daemon)); | 294 | kzfree(daemon); |
295 | kfree(daemon); | ||
296 | out: | 295 | out: |
297 | return rc; | 296 | return rc; |
298 | } | 297 | } |