]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r286785, r291088, r291120
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 Dec 2015 15:55:15 +0000 (15:55 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 27 Dec 2015 15:55:15 +0000 (15:55 +0000)
commit69c6e1d8a1ef066051adf1b205d4c8cf9a35a993
tree3691673d08307f00e3b231ea9225ac444c2f0c6d
parent643b8d7107f37fb43361146a36f969ca6400679f
MFC: r286785, r291088, r291120
- Reformat x86 bounce buffer synchronization code to reduce indentation.
  No functional change.
- Avoid a NULL pointer dereference in bounce_bus_dmamap_sync() when the
  map has been created via bounce_bus_dmamem_alloc(). Even for coherent
  DMA - which bus_dmamem_alloc(9) typically is used for -, calling of
  bus_dmamap_sync(9) isn't optional. [1]
- Avoid a NULL pointer dereference in bounce_bus_dmamap_unload() when
  the map has been created via bounce_bus_dmamem_alloc(). In that case
  bus_dmamap_unload(9) typically isn't called during normal operation
  but still should be during detach, cleanup from failed attach etc. [2]

PR: 188899 (non-original problem) [1]
Submitted by: yongari [2]

git-svn-id: svn://svn.freebsd.org/base/stable/9@292778 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/x86/x86/busdma_machdep.c