svn commit: r278592 - head/sys/kern
Rui Paulo
rpaulo at FreeBSD.org
Wed Feb 11 19:07:06 UTC 2015
Author: rpaulo
Date: Wed Feb 11 19:07:05 2015
New Revision: 278592
URL: https://svnweb.freebsd.org/changeset/base/278592
Log:
Remove check against NULL after M_WAITOK.
Submitted by: Oliver Pinter
Modified:
head/sys/kern/kern_sig.c
Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c Wed Feb 11 18:59:46 2015 (r278591)
+++ head/sys/kern/kern_sig.c Wed Feb 11 19:07:05 2015 (r278592)
@@ -3362,8 +3362,6 @@ close:
len = MAXPATHLEN * 2 + sizeof(comm_name) - 1 +
sizeof(' ') + sizeof(core_name) - 1;
data = malloc(len, M_TEMP, M_WAITOK);
- if (data == NULL)
- goto out;
if (vn_fullpath_global(td, p->p_textvp, &fullpath, &freepath) != 0)
goto out;
if (!coredump_sanitise_path(fullpath))
More information about the svn-src-all
mailing list