aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/EN-18:10/syscall-11.patch
blob: f65aec162441e9920db94815833db57c6aabe1a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- sys/kern/vfs_syscalls.c.orig
+++ sys/kern/vfs_syscalls.c
@@ -600,6 +600,8 @@
 	size = count * sizeof(struct statfs);
 	error = kern_getfsstat(td, &buf, size, &count, UIO_SYSSPACE,
 	    uap->mode);
+	if (buf == NULL)
+		return (EINVAL);
 	td->td_retval[0] = count;
 	if (size != 0) {
 		sp = buf;