svn commit: r277866 - vendor/amd/dist/amd
Pedro F. Giffuni
pfg at FreeBSD.org
Wed Jan 28 23:22:43 UTC 2015
Author: pfg
Date: Wed Jan 28 23:22:42 2015
New Revision: 277866
URL: https://svnweb.freebsd.org/changeset/base/277866
Log:
avoid possible null pointer deref (coverity)
author Christos Zoulas <christos at zoulas.com>
Wed, 17 Sep 2008 15:07:20 -0500 (20:07 +0000)
committer Christos Zoulas <christos at zoulas.com>
Wed, 17 Sep 2008 15:07:20 -0500 (20:07 +0000)
commit d414de481f6efe52455c19f64e911d0db34d185a
Modified:
vendor/amd/dist/amd/amfs_generic.c
Modified: vendor/amd/dist/amd/amfs_generic.c
==============================================================================
--- vendor/amd/dist/amd/amfs_generic.c Wed Jan 28 23:13:12 2015 (r277865)
+++ vendor/amd/dist/amd/amfs_generic.c Wed Jan 28 23:22:42 2015 (r277866)
@@ -1113,7 +1113,7 @@ amfs_generic_mount_child(am_node *new_mp
new_mp->am_transp = (SVCXPRT *) xmalloc(sizeof(SVCXPRT));
*(new_mp->am_transp) = *current_transp;
}
- if (error && (new_mp->am_mnt->mf_ops == &amfs_error_ops))
+ if (error && new_mp->am_mnt && (new_mp->am_mnt->mf_ops == &amfs_error_ops))
new_mp->am_error = error;
if (new_mp->am_error > 0)
More information about the svn-src-vendor
mailing list