Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/dev
Module Name: src
Committed By: rin
Date: Sun May 29 10:43:46 UTC 2022
Modified Files:
src/sys/dev/hyperv: if_hvn.c
src/sys/dev/ic: ciss.c elinkxl.c hme.c i82596.c
src/sys/dev/isa: if_le_isa.c
src/sys/dev/isapnp: if_le_isapnp.c
src/sys/dev/sbus: if_le.c if_le_ledma.c
src/sys/dev/tc: if_le_ioasic.c
Log Message:
Audit unload/unmap v.s. free against DMA buffer for sys/dev;
make sure that bus_dmamap_unload(9) [or bus_dmamap_destroy(9)] or
bus_dmamem_unmap(9) are preceding to freeing DMA buffer, if it is
loaded or mapped, respectively.
This is mandatory for some archs. See, e.g.:
http://www.nerv.org/netbsd/?q=id:20210511T013030Z.013443cc790088147e4beed43f53dedabeaf9312
http://www.nerv.org/netbsd/?q=id:20220511T172220Z.561179f0b6fcc5b9cd73e274f69d74e2ce9e4c93
For some drivers, resource leaks for error paths are fixed at
the same time.
XXX XXX XXX
Compile test only (at least one arch per driver).
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/hyperv/if_hvn.c
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/ic/ciss.c
cvs rdiff -u -r1.138 -r1.139 src/sys/dev/ic/elinkxl.c
cvs rdiff -u -r1.108 -r1.109 src/sys/dev/ic/hme.c
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/ic/i82596.c
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/isa/if_le_isa.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/isapnp/if_le_isapnp.c
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/sbus/if_le.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/sbus/if_le_ledma.c
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/tc/if_le_ioasic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index