svn commit: r284605 - head/sys/kern

Sean Bruno sbruno at FreeBSD.org
Fri Jun 19 19:57:40 UTC 2015


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);


More information about the svn-src-all mailing list