projects
/
am-utils-6.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
529503e
)
From: Ian Kent <raven@themaw.net>
author
zoulasc
<christos@zoulas.com>
Fri, 21 Mar 2014 00:26:49 +0000
(20:26 -0400)
committer
zoulasc
<christos@zoulas.com>
Fri, 21 Mar 2014 00:26:49 +0000
(20:26 -0400)
Avoid NULL dereference on umount
conf/autofs/autofs_linux.c
patch
|
blob
|
history
diff --git
a/conf/autofs/autofs_linux.c
b/conf/autofs/autofs_linux.c
index 5e6a1712bdfaab0a6de0eb9ad3921740b6715af1..fd5dbc6dae2031e02d7767ff90a046732b2f283d 100644
(file)
--- a/
conf/autofs/autofs_linux.c
+++ b/
conf/autofs/autofs_linux.c
@@
-753,6
+753,10
@@
autofs_umount_succeeded(am_node *mp)
autofs_fh_t *fh = mp->am_parent->am_autofs_fh;
struct autofs_pending_umount **pp, *p;
+ /* Already gone? */
+ if (fh == NULL)
+ return 0;
+
pp = &fh->pending_umounts;
while (*pp && !STREQ((*pp)->name, mp->am_name))
pp = &(*pp)->next;