HomeFreeBSD

bcm_dma: don't dereference NULL softc

Description

bcm_dma: don't dereference NULL softc

This file defines a small API to be used by other drivers. If any of
these functions are called before the bcm_dma device has attached we
should handle the error gracefully. Fix a formatting quirk while here.

Reviewed by: manu
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D38756

Details

Provenance
mhorneAuthored on Feb 24 2023, 5:19 PM
Reviewer
manu
Differential Revision
D38756: bcm_dma: don't dereference NULL softc
Parents
rG9873b1716970: bcm_dma: attach at an earlier bus pass
Branches
Unknown
Tags
Unknown