Handle errors in the same way it is done in safe(4).

This commit is contained in:
Pawel Jakub Dawidek 2006-06-06 13:58:12 +00:00
parent e8e715f669
commit 7a61da9984

View File

@ -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]));