handle ttm_sg_tt_init() not being called before ttm_tt_fini()
authorjsg <jsg@openbsd.org>
Wed, 20 Mar 2024 03:02:24 +0000 (03:02 +0000)
committerjsg <jsg@openbsd.org>
Wed, 20 Mar 2024 03:02:24 +0000 (03:02 +0000)
commitfb366a915a43e2eb92cc455bbd665f66e4c0fc05
treec9b0cd6f7eba2c4a659e4fedc11a109db9e08110
parentaf8dd37d06ae877fe1b3b91ca51958689eee333c
handle ttm_sg_tt_init() not being called before ttm_tt_fini()

Check that dmamap and segs are non-NULL as not all drivers call
ttm_sg_tt_init().
sys/dev/pci/drm/ttm/ttm_tt.c