Don't try to use dev->dma_lock unless dma is initialized (dev->dma != NULL)
authorEric Anholt <anholt@freebsd.org>
Fri, 24 Oct 2003 21:49:28 +0000 (21:49 +0000)
committerEric Anholt <anholt@freebsd.org>
Fri, 24 Oct 2003 21:49:28 +0000 (21:49 +0000)
commit2423fedcc8d57d02ccf7aa1209a4b31f248792a7
treef2e426fb4458cbb840f2902dd953af568e016ada
parente4a2a9c04024972f21cdf0620f6faa6de157686d
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).
bsd-core/drm_sysctl.c
bsd/drm_sysctl.h