svn commit: r357682 - head/sys/dev/xdma
Ruslan Bukin
br at FreeBSD.org
Sat Feb 8 21:02:21 UTC 2020
Author: br
Date: Sat Feb 8 21:02:20 2020
New Revision: 357682
URL: https://svnweb.freebsd.org/changeset/base/357682
Log:
Fix a KASSERT since chained mbufs are accepted by the xdma bounce
buffer loader. m_copydata() will copy entire chain to a single buffer.
Sponsored by: DARPA, AFRL
Modified:
head/sys/dev/xdma/xdma_sg.c
Modified: head/sys/dev/xdma/xdma_sg.c
==============================================================================
--- head/sys/dev/xdma/xdma_sg.c Sat Feb 8 20:56:38 2020 (r357681)
+++ head/sys/dev/xdma/xdma_sg.c Sat Feb 8 21:02:20 2020 (r357682)
@@ -498,7 +498,7 @@ _xdma_load_data(xdma_channel_t *xchan, struct xdma_req
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;
More information about the svn-src-head
mailing list