Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24 /fs/autofs4/waitq.c

Filename:/fs/autofs4/waitq.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.24-rc8  2.6.24-rc7  2.6.24-rc6  2.6.24-rc5  2.6.24-rc4  2.6.24-rc3 
(Following) 2.6.25-git18  2.6.25-git19  2.6.25-git20  2.6.26-rc1  2.6.26-rc2  2.6.26-rc3 

Location
[  2.6.24
  [  fs
    [  autofs4
       o  waitq.c

Patch

diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
index 0d041a9..1fe28e4 100644
--- a/fs/autofs4/waitq.c
+++ b/fs/autofs4/waitq.c
@@ -376,7 +376,7 @@ int autofs4_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_tok
    struct autofs_wait_queue *wq, **wql;
 
    mutex_lock(&sbi->wq_mutex);
-   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;
    }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.