diff options
| author | Rafal Jaworowski <raj@FreeBSD.org> | 2009-05-23 13:23:46 +0000 |
|---|---|---|
| committer | Rafal Jaworowski <raj@FreeBSD.org> | 2009-05-23 13:23:46 +0000 |
| commit | ae184a6a7da0cbe989be569657448e1220839e86 (patch) | |
| tree | d344a2c7d96fe600c9074dce9e698b9db9d2e8c5 /sys/opencrypto | |
| parent | 813bb2c94e9657f306f960f98183ac5de0537e76 (diff) | |
Notes
Diffstat (limited to 'sys/opencrypto')
| -rw-r--r-- | sys/opencrypto/cryptodev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c index 73280ccf079b..5f1331d693ad 100644 --- a/sys/opencrypto/cryptodev.c +++ b/sys/opencrypto/cryptodev.c @@ -409,8 +409,10 @@ cryptodev_op( cse->uio.uio_rw = UIO_WRITE; cse->uio.uio_td = td; cse->uio.uio_iov[0].iov_len = cop->len; - if (cse->thash) + if (cse->thash) { cse->uio.uio_iov[0].iov_len += cse->thash->hashsize; + cse->uio.uio_resid += cse->thash->hashsize; + } cse->uio.uio_iov[0].iov_base = malloc(cse->uio.uio_iov[0].iov_len, M_XDATA, M_WAITOK); |
