mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 12:48:05 +02:00
Avoid hitting BUG() for kernel-only fence objects.
This commit is contained in:
parent
00f1a66f22
commit
a27af4c4a6
1 changed files with 6 additions and 0 deletions
|
|
@ -450,6 +450,12 @@ static int drm_fence_object_init(drm_device_t * dev, uint32_t class,
|
|||
|
||||
write_lock_irqsave(&fm->lock, flags);
|
||||
INIT_LIST_HEAD(&fence->ring);
|
||||
|
||||
/*
|
||||
* Avoid hitting BUG() for kernel-only fence objects.
|
||||
*/
|
||||
|
||||
INIT_LIST_HEAD(&fence->base.list);
|
||||
fence->class = class;
|
||||
fence->type = type;
|
||||
fence->flush_mask = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue