]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The nsegs parameter to bus_dmamap_load_mbuf_sg is not required to
authorgrehan <grehan@FreeBSD.org>
Sat, 9 Jul 2005 06:53:52 +0000 (06:53 +0000)
committergrehan <grehan@FreeBSD.org>
Sat, 9 Jul 2005 06:53:52 +0000 (06:53 +0000)
commit671f52d9b82d3e4e0ba4a11c6d1f24460b9a4b77
tree777f8f7e3cb5dd2813c7f06dc67da30da49d264a
parent546c2464a37750c6bc9fdb48917559d308ff5f20
 The nsegs parameter to bus_dmamap_load_mbuf_sg is not required to
be set to 0 on input. This caused a panic in an an MP test version
of the GEM driver from Marius, and from inspection of other PCI
drivers, the same problem would happen there.
 Fix by explicitly setting to 0.

Approved by:   re
sys/powerpc/powerpc/busdma_machdep.c