From 26187fa579b03f30c9dbbe24be3dabcba33e59b8 Mon Sep 17 00:00:00 2001 From: oster Date: Tue, 18 Jan 2005 03:29:51 +0000 Subject: [PATCH] ForceReconReadDoneProc() needs a return after doing the first rf_CauseReconEvent(). --- sys/dev/raidframe/rf_reconstruct.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c index da72c95245a5..7e648e03035f 100644 --- a/sys/dev/raidframe/rf_reconstruct.c +++ b/sys/dev/raidframe/rf_reconstruct.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_reconstruct.c,v 1.78 2004/12/12 20:53:15 oster Exp $ */ +/* $NetBSD: rf_reconstruct.c,v 1.79 2005/01/18 03:29:51 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -33,7 +33,7 @@ ************************************************************/ #include -__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.78 2004/12/12 20:53:15 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.79 2005/01/18 03:29:51 oster Exp $"); #include #include @@ -1550,6 +1550,7 @@ ForceReconReadDoneProc(void *arg, int status) if (status) { printf("raid%d: Forced recon read failed!\n", rbuf->raidPtr->raidid); rf_CauseReconEvent(rbuf->raidPtr, rbuf->col, (void *) rbuf, RF_REVENT_FORCEDREAD_FAILED); + return; } rf_CauseReconEvent(rbuf->raidPtr, rbuf->col, (void *) rbuf, RF_REVENT_FORCEDREADDONE); }