]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_ffec: free the dmamem allocation in detach
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 15 Jun 2022 15:53:25 +0000 (12:53 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 23 Jun 2022 18:15:10 +0000 (15:15 -0300)
commit8757d0fca9e6a9e174bc87728e296e5338d30eb7
tree03c1f2c31706e40e4c291fa77e1773a2d36a28bd
parentb93985c11a6e7c7dd5fcaca8db6f4847a0126991
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
sys/dev/ffec/if_ffec.c