From 475e4e17c039bf4b5aeab47b65ac2373b5387f06 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 2 Mar 1999 21:53:51 +0000 Subject: Remove 3 bad panic cases, which should just report an error up to the caller. This fixes some cases of panics due to SCSI errors. --- sys/dev/raidframe/rf_parityscan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/raidframe/rf_parityscan.c b/sys/dev/raidframe/rf_parityscan.c index 2bba8d31b28..4fce2cbcbf2 100644 --- a/sys/dev/raidframe/rf_parityscan.c +++ b/sys/dev/raidframe/rf_parityscan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rf_parityscan.c,v 1.2 1999/02/16 00:03:09 niklas Exp $ */ +/* $OpenBSD: rf_parityscan.c,v 1.3 1999/03/02 21:53:50 niklas Exp $ */ /* $NetBSD: rf_parityscan.c,v 1.3 1999/02/05 00:06:14 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. @@ -83,15 +83,15 @@ rf_RewriteParity(raidPtr) break; case RF_PARITY_BAD: printf("Parity bad during correction\n"); - RF_PANIC(); + return (1); break; case RF_PARITY_COULD_NOT_CORRECT: printf("Could not correct bad parity\n"); - RF_PANIC(); + return (1); break; case RF_PARITY_COULD_NOT_VERIFY: printf("Could not verify parity\n"); - RF_PANIC(); + return (1); break; default: printf("Bad rc=%d from VerifyParity in RewriteParity\n", rc); -- cgit v1.2.3