Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern XXX an impossible malloc failure check in set_statf...
details: https://anonhg.NetBSD.org/src/rev/5909e546a726
branches: trunk
changeset: 555259:5909e546a726
user: dbj <dbj%NetBSD.org@localhost>
date: Wed Nov 12 20:38:24 2003 +0000
description:
XXX an impossible malloc failure check in set_statfs_info
diffstat:
sys/kern/vfs_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d060af901924 -r 5909e546a726 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c Wed Nov 12 19:50:46 2003 +0000
+++ b/sys/kern/vfs_subr.c Wed Nov 12 20:38:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.208 2003/10/15 11:29:01 hannken Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.209 2003/11/12 20:38:24 dbj Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.208 2003/10/15 11:29:01 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.209 2003/11/12 20:38:24 dbj Exp $");
#include "opt_inet.h"
#include "opt_ddb.h"
@@ -2919,7 +2919,7 @@
char *bp;
char *path = malloc(MAXPATHLEN, M_TEMP, M_WAITOK);
- if (!path)
+ if (!path) /* XXX can't happen with M_WAITOK */
return ENOMEM;
bp = path + MAXPATHLEN;
Home |
Main Index |
Thread Index |
Old Index