Date: Fri, 19 Jun 2015 19:57:40 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284605 - head/sys/kern Message-ID: <201506191957.t5JJvelx023700@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Fri Jun 19 19:57:39 2015 New Revision: 284605 URL: https://svnweb.freebsd.org/changeset/base/284605 Log: Must have one of either M_WAITOK or M_NOWAIT, read the man page bruno. Submitted by: mjg Modified: head/sys/kern/imgact_binmisc.c Modified: head/sys/kern/imgact_binmisc.c ============================================================================== --- head/sys/kern/imgact_binmisc.c Fri Jun 19 19:36:29 2015 (r284604) +++ head/sys/kern/imgact_binmisc.c Fri Jun 19 19:57:39 2015 (r284605) @@ -406,7 +406,7 @@ imgact_binmisc_get_all_entries(struct sy sx_slock(&interp_list_sx); count = interp_list_entry_count; - xbe = malloc(sizeof(*xbe) * count, M_BINMISC, M_ZERO); + xbe = malloc(sizeof(*xbe) * count, M_BINMISC, M_WAITOK|M_ZERO); if (!xbe) { sx_sunlock(&interp_list_sx); return (ENOMEM);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506191957.t5JJvelx023700>