X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fautofs%2Fwaitq.c;h=1fcaa1568541c79060996da33a52cd6f6b58d189;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=d08b648ccae56b4179aa886d9925c84a3eb7c9c0;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c index d08b648cc..1fcaa1568 100644 --- a/fs/autofs/waitq.c +++ b/fs/autofs/waitq.c @@ -183,7 +183,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) ; wql = &wq->next ) { + for ( wql = &sbi->queues ; (wq = *wql) != 0 ; wql = &wq->next ) { if ( wq->wait_queue_token == wait_queue_token ) break; }