Skip to content

Commit

Permalink
Fix a KASSERT since chained mbufs are accepted by the xdma bounce
Browse files Browse the repository at this point in the history
buffer loader. m_copydata() will copy entire chain to a single buffer.

Sponsored by:	DARPA, AFRL
  • Loading branch information
bukinr committed Feb 8, 2020
1 parent 11dc28a commit aafb39d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/xdma/xdma_sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ _xdma_load_data(xdma_channel_t *xchan, struct xdma_request *xr,

m = xr->m;

KASSERT(xchan->caps & XCHAN_CAP_NOSEG,
KASSERT(xchan->caps & (XCHAN_CAP_NOSEG | XCHAN_CAP_BOUNCE),
("Handling segmented data is not implemented here."));

nsegs = 1;
Expand Down

0 comments on commit aafb39d

Please sign in to comment.