Handle errors in the same way it is done in safe(4).
This commit is contained in:
parent
e8e715f669
commit
7a61da9984
@ -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]));
|
||||
|
Loading…
Reference in New Issue
Block a user