diff options
author | Ilia Mirkin <[email protected]> | 2014-06-19 04:25:04 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-06-24 09:30:25 -0400 |
commit | a59f2bb17bcc78e09653391748549e7973990798 (patch) | |
tree | c70b75e42d89d412d6633d275835618a313edfda /src/glsl/SConscript | |
parent | 41d759d076737f94976f5294b734dbc437a12bae (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/glsl/SConscript')
0 files changed, 0 insertions, 0 deletions