HomeFreeBSD

Don't try to use dev->dma_lock unless dma is initialized (dev->dma != NULL)

Description

Don't try to use dev->dma_lock unless dma is initialized (dev->dma != NULL)
in bufs_info sysctl handler. dev->dma and dev->dma_lock existence are
protected by DRM_LOCK(). Fixes panic on sysctl hw.dri when the device is
uninitialied (when you aren't in X).

Details

Provenance
Eric Anholt <anholt@FreeBSD.org>Authored on Oct 24 2003, 9:45 PM
Parents
rG84b4ac514ee9: Use 'k' as suffix for Kilo
Branches
Unknown
Tags
Unknown

Event Timeline