projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparse pointer use of zero as null
[linux-2.6-microblaze.git]
/
fs
/
autofs
/
waitq.c
diff --git
a/fs/autofs/waitq.c
b/fs/autofs/waitq.c
index
633f628
..
be46805
100644
(file)
--- 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 */
wq = nwq;
}
fput(sbi->pipe); /* Close the pipe */
+ sbi->pipe = NULL;
autofs_hash_dputall(&sbi->dirhash); /* Remove all dentry pointers */
}
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;
{
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;
}
if ( wq->wait_queue_token == wait_queue_token )
break;
}