Date: Wed, 11 Feb 2015 19:07:06 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278592 - head/sys/kern Message-ID: <201502111907.t1BJ761u060790@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502111907.t1BJ761u060790>