Don't forget to initialize crp_olen field, which is used to calculate

bio_completed value.
This commit is contained in:
Pawel Jakub Dawidek 2006-07-22 10:05:55 +00:00
parent 5362e27b6d
commit 8cfab1debb

View File

@ -483,6 +483,7 @@ g_eli_auth_run(struct g_eli_worker *wr, struct bio *bp)
crp->crp_sid = wr->w_sid;
crp->crp_ilen = uio->uio_resid;
crp->crp_olen = data_secsize;
crp->crp_opaque = (void *)bp;
crp->crp_buf = (void *)uio;
crp->crp_flags = CRYPTO_F_IOV | CRYPTO_F_CBIFSYNC | CRYPTO_F_REL;