summaryrefslogtreecommitdiff
path: root/hw/dmx/dmxfont.c
diff options
context:
space:
mode:
authorMichal Srb <msrb@suse.com>2014-04-15 18:54:35 +0300
committerKeith Packard <keithp@keithp.com>2014-05-22 16:27:44 -0700
commit3dba171f5e82101aa8ea2e47d2253c3410907f6a (patch)
tree405c322c680ba0683bd60c4865c54a8c4274e87b /hw/dmx/dmxfont.c
parentc08d2b8ccb0158dbf1f529f80cc3236e66236cce (diff)
dri2: Fix detection of wrong prime_id in GetScreenPrime.
Checking the iterating variable ("slave") against null can not detect if the xorg_list_for_each_entry finished without break being invoked - slave variable will be always non-null. This caused segfault whenever someone tried to use DRI_PRIME with incorrect id while having at least one render offloading slave configured. Restructurize the GetScreenPrime to work as expected. Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/dmx/dmxfont.c')
0 files changed, 0 insertions, 0 deletions