X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fautofs%2Fwaitq.c;h=633f628005b4a773b3e9326263b6892cdbce6b92;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=1fcaa1568541c79060996da33a52cd6f6b58d189;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c index 1fcaa1568..633f62800 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 ) {