diff options
Diffstat (limited to 'fs/autofs/waitq.c')
-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 1fcaa1568541..633f628005b4 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) | |||
150 | if ( sbi->catatonic ) { | 150 | if ( sbi->catatonic ) { |
151 | /* We might have slept, so check again for catatonic mode */ | 151 | /* We might have slept, so check again for catatonic mode */ |
152 | wq->status = -ENOENT; | 152 | wq->status = -ENOENT; |
153 | if ( wq->name ) { | 153 | kfree(wq->name); |
154 | kfree(wq->name); | 154 | wq->name = NULL; |
155 | wq->name = NULL; | ||
156 | } | ||
157 | } | 155 | } |
158 | 156 | ||
159 | if ( wq->name ) { | 157 | if ( wq->name ) { |