diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2013-01-16 06:42:23 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2013-01-16 06:42:23 +0000 |
commit | e49d6153378445e33f52e36468ef7885ab1b56ce (patch) | |
tree | f95b7967b871fe891d206aa68480be3979e51e3a /sys/dev/softraid_crypto.c | |
parent | 86011245cc4f8fc88420a96d7045e510339a4f6b (diff) |
Set resid to zero if the scsi transfer completed without error.
ok krw@
Diffstat (limited to 'sys/dev/softraid_crypto.c')
-rw-r--r-- | sys/dev/softraid_crypto.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/softraid_crypto.c b/sys/dev/softraid_crypto.c index 39c8ed86fc2..f77df472ab1 100644 --- a/sys/dev/softraid_crypto.c +++ b/sys/dev/softraid_crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_crypto.c,v 1.84 2013/01/15 09:28:29 jsing Exp $ */ +/* $OpenBSD: softraid_crypto.c,v 1.85 2013/01/16 06:42:22 jsing Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Hans-Joerg Hoexer <hshoexer@openbsd.org> @@ -1400,8 +1400,6 @@ sr_crypto_finish_io(struct sr_workunit *wu) DNPRINTF(SR_D_INTR, "%s: sr_crypto_finish_io: wu %x xs: %x\n", DEVNAME(sc), wu, xs); - xs->resid = 0; - if (wu->swu_cb_active == 1) panic("%s: sr_crypto_finish_io", DEVNAME(sd->sd_sc)); TAILQ_FOREACH(ccb, &wu->swu_ccb, ccb_link) { |