svn commit: r227874 - head/sys/kern
Mikolaj Golub
trociny at FreeBSD.org
Wed Nov 23 08:11:05 UTC 2011
Author: trociny
Date: Wed Nov 23 08:11:04 2011
New Revision: 227874
URL: http://svn.freebsd.org/changeset/base/227874
Log:
Fix build without INVARIANTS.
Discussed with: kib
Modified:
head/sys/kern/kern_proc.c
Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c Wed Nov 23 07:34:09 2011 (r227873)
+++ head/sys/kern/kern_proc.c Wed Nov 23 08:11:04 2011 (r227874)
@@ -1468,6 +1468,7 @@ get_proc_vector32(struct thread *td, str
break;
default:
KASSERT(0, ("Wrong proc vector type: %d", type));
+ return (EINVAL);
}
proc_vector32 = malloc(size, M_TEMP, M_WAITOK);
error = proc_read_mem(td, p, vptr, proc_vector32, size);
@@ -1564,6 +1565,7 @@ get_proc_vector(struct thread *td, struc
break;
default:
KASSERT(0, ("Wrong proc vector type: %d", type));
+ return (EINVAL); /* In case we are built without INVARIANTS. */
}
proc_vector = malloc(size, M_TEMP, M_WAITOK);
if (proc_vector == NULL)
More information about the svn-src-all
mailing list