Date: Wed, 28 Jan 2015 23:22:43 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r277866 - vendor/amd/dist/amd Message-ID: <201501282322.t0SNMhDU025445@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@zoulas.com> Wed, 17 Sep 2008 15:07:20 -0500 (20:07 +0000) committer Christos Zoulas <christos@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501282322.t0SNMhDU025445>