Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Return EINVAL rather than stepping off a null poi...
details: https://anonhg.NetBSD.org/src/rev/3e98da7202df
branches: trunk
changeset: 554512:3e98da7202df
user: mycroft <mycroft%NetBSD.org@localhost>
date: Wed Oct 29 02:31:55 2003 +0000
description:
Return EINVAL rather than stepping off a null pointer.
diffstat:
sys/dev/ic/adwlib.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (32 lines):
diff -r 8bb7f1ad828d -r 3e98da7202df sys/dev/ic/adwlib.c
--- a/sys/dev/ic/adwlib.c Wed Oct 29 02:27:32 2003 +0000
+++ b/sys/dev/ic/adwlib.c Wed Oct 29 02:31:55 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adwlib.c,v 1.28 2003/10/25 21:33:04 christos Exp $ */
+/* $NetBSD: adwlib.c,v 1.29 2003/10/29 02:31:55 mycroft Exp $ */
/*
* Low level routines for the Advanced Systems Inc. SCSI controllers chips
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.28 2003/10/25 21:33:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.29 2003/10/29 02:31:55 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1072,11 +1072,9 @@
mcode_size = (u_int16_t)adw_asc38C1600_mcode_data.mcode_size;
adw_memsize = ADW_38C1600_MEMSIZE;
break;
+
default:
- mcode_data = NULL;
- mcode_chksum = 0;
- mcode_size = 0;
- adw_memsize = 0;
+ return (EINVAL);
}
/*
Home |
Main Index |
Thread Index |
Old Index