diff options
author | pjd <pjd@FreeBSD.org> | 2006-06-06 13:58:12 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-06-06 13:58:12 +0000 |
commit | 1be5d52a81ade665a211a3f2c4e74782dfa3df50 (patch) | |
tree | 99b21b02d46450a4146aae6f8c534843010a62cb /sys/dev/ubsec/ubsec.c | |
parent | 95669b8564a94fa59b4325622772ba359ce67b1a (diff) | |
download | FreeBSD-src-1be5d52a81ade665a211a3f2c4e74782dfa3df50.zip FreeBSD-src-1be5d52a81ade665a211a3f2c4e74782dfa3df50.tar.gz |
Handle errors in the same way it is done in safe(4).
Diffstat (limited to 'sys/dev/ubsec/ubsec.c')
-rw-r--r-- | sys/dev/ubsec/ubsec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c index 9f83e43..e9a2a41 100644 --- a/sys/dev/ubsec/ubsec.c +++ b/sys/dev/ubsec/ubsec.c @@ -1024,9 +1024,11 @@ ubsec_op_cb(void *arg, bus_dma_segment_t *seg, int nsegs, bus_size_t mapsize, in ("Too many DMA segments returned when mapping operand")); #ifdef UBSEC_DEBUG if (ubsec_debug) - printf("ubsec_op_cb: mapsize %u nsegs %d\n", - (u_int) mapsize, nsegs); + printf("ubsec_op_cb: mapsize %u nsegs %d error %d\n", + (u_int) mapsize, nsegs, error); #endif + if (error != 0) + return; op->mapsize = mapsize; op->nsegs = nsegs; bcopy(seg, op->segs, nsegs * sizeof (seg[0])); |