diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-22 19:45:36 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-22 19:45:36 +0000 |
commit | 09c6af621e90dbc4ecbcb1bbbdd7bf3534d2c685 (patch) | |
tree | 7f2b77afa7f8f9d5dca4c70a4af4008b7b00b1a7 /sys/arch/vax/mbus | |
parent | c18854447133ab6aa12bdf2c2389b14e720303a9 (diff) |
Do not dereference an uninitialized pointer if a rogue, unknown type of board
is detected.
Diffstat (limited to 'sys/arch/vax/mbus')
-rw-r--r-- | sys/arch/vax/mbus/mbus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/vax/mbus/mbus.c b/sys/arch/vax/mbus/mbus.c index a9fc92145fb..92fdd1799f7 100644 --- a/sys/arch/vax/mbus/mbus.c +++ b/sys/arch/vax/mbus/mbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbus.c,v 1.1 2008/08/18 23:19:25 miod Exp $ */ +/* $OpenBSD: mbus.c,v 1.2 2008/09/22 19:45:35 miod Exp $ */ /* * Copyright (c) 2008 Miodrag Vallat. @@ -229,6 +229,7 @@ mbus_print(void *aux, const char *pnp) "ECC memory" : "Memory"; break; default: + descr = NULL; rc = UNSUPP; break; } |