diff options
Diffstat (limited to 'fs/autofs')
-rw-r--r-- | fs/autofs/waitq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c index 1fcaa156..633f628 100644 --- a/fs/autofs/waitq.c +++ b/fs/autofs/waitq.c @@ -150,10 +150,8 @@ int autofs_wait(struct autofs_sb_info *sbi, struct qstr *name) if ( sbi->catatonic ) { /* We might have slept, so check again for catatonic mode */ wq->status = -ENOENT; - if ( wq->name ) { - kfree(wq->name); - wq->name = NULL; - } + kfree(wq->name); + wq->name = NULL; } if ( wq->name ) { |