Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/atari/atari Pull up revision 1.17 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/692b67f0bc96
branches:  netbsd-1-4
changeset: 469847:692b67f0bc96
user:      he <he%NetBSD.org@localhost>
date:      Sat Dec 04 19:51:09 1999 +0000

description:
Pull up revision 1.17 (requested by leo):
  Make sure the pointer to the cpu_label is not NULL before trying
  to use it.

diffstat:

 sys/arch/atari/atari/disksubr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9b0d3f449931 -r 692b67f0bc96 sys/arch/atari/atari/disksubr.c
--- a/sys/arch/atari/atari/disksubr.c   Sat Dec 04 19:48:27 1999 +0000
+++ b/sys/arch/atari/atari/disksubr.c   Sat Dec 04 19:51:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.16 1998/07/05 08:49:38 jonathan Exp $   */
+/*     $NetBSD: disksubr.c,v 1.16.8.1 1999/12/04 19:51:09 he Exp $     */
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -229,7 +229,7 @@
                return(EINVAL);
 
 #ifdef DISKLABEL_AHDI
-       if (clp->cd_bblock)
+       if (clp && clp->cd_bblock)
                ck_label(nlp, clp);
 #endif
        while (openmask) {



Home | Main Index | Thread Index | Old Index