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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to