summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/osmesa
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-06-19 04:25:04 -0400
committerIlia Mirkin <[email protected]>2014-06-24 09:30:25 -0400
commita59f2bb17bcc78e09653391748549e7973990798 (patch)
treec70b75e42d89d412d6633d275835618a313edfda /src/gallium/state_trackers/osmesa
parent41d759d076737f94976f5294b734dbc437a12bae (diff)
nouveau: dup fd before passing it to device
nouveau screens are reused for the same device node. However in the scenario where we create screen 1, screen 2, and then delete screen 1, the surrounding code might also close the original device node. To protect against this, dup the fd and use the dup'd fd in the nouveau_device. Also tell the nouveau_device that it is the owner of the fd so that it will be closed on destruction. Also make sure to free the nouveau_device in case of any failure. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79823 Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2" <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/osmesa')
0 files changed, 0 insertions, 0 deletions