opnsense-src/sys/dev/ffec
Mitchell Horne bdedfb3a00 if_ffec: free the dmamem allocation in detach
Calling bus_dmamap_destroy() for a mapping which was allocated with
bus_dmamem_alloc() will result in a panic. This change is not run-time
tested, but I identified the issue while implementing the analogous
method in if_dwc(4), using this implementation as the template.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 8757d0fca9)
2022-07-04 13:34:57 -03:00
..
if_ffec.c if_ffec: free the dmamem allocation in detach 2022-07-04 13:34:57 -03:00
if_ffecreg.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00