X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Fautofs%2Fwaitq.c;h=be46805972f0b9fc589f6d4dfae59e703f9413cb;hb=0477406961c185ef9a6d9c908b5c70ffe206833e;hp=633f628005b4a773b3e9326263b6892cdbce6b92;hpb=383f9749505cef0a30dbd7109db7fe469aa64753;p=linux-2.6-omap-h63xx.git diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c index 633f628005b..be46805972f 100644 --- a/fs/autofs/waitq.c +++ b/fs/autofs/waitq.c @@ -41,6 +41,7 @@ void autofs_catatonic_mode(struct autofs_sb_info *sbi) wq = nwq; } fput(sbi->pipe); /* Close the pipe */ + sbi->pipe = NULL; autofs_hash_dputall(&sbi->dirhash); /* Remove all dentry pointers */ } @@ -181,7 +182,7 @@ int autofs_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_toke { struct autofs_wait_queue *wq, **wql; - for ( wql = &sbi->queues ; (wq = *wql) != 0 ; wql = &wq->next ) { + for (wql = &sbi->queues; (wq = *wql) != NULL; wql = &wq->next) { if ( wq->wait_queue_token == wait_queue_token ) break; }