diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-03-02 21:53:51 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-03-02 21:53:51 +0000 |
commit | 475e4e17c039bf4b5aeab47b65ac2373b5387f06 (patch) | |
tree | 81f67de7ee5c740f5439a85d089d7fcc84dba95d | |
parent | bd43576233137aa739af9172ee6c28075bbb3e1e (diff) |
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.
-rw-r--r-- | sys/dev/raidframe/rf_parityscan.c | 8 |
1 files 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); |