X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fautofs4%2Fwaitq.c;h=b2f2e885d94bd98d1a5cb0b4570b341a7e2deb1f;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=caae47fd7a8e0c9239b41b269beb17d818a6741b;hpb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;p=linux-2.6.git diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c index caae47fd7..b2f2e885d 100644 --- a/fs/autofs4/waitq.c +++ b/fs/autofs4/waitq.c @@ -275,7 +275,7 @@ int autofs4_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_tok struct autofs_wait_queue *wq, **wql; down(&sbi->wq_sem); - for ( wql = &sbi->queues ; (wq = *wql) ; wql = &wq->next ) { + for ( wql = &sbi->queues ; (wq = *wql) != 0 ; wql = &wq->next ) { if ( wq->wait_queue_token == wait_queue_token ) break; }