projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
820c03e
)
nouveau/winsys: Fix an undefined use in the error path.
author
Emma Anholt
<emma@anholt.net>
Wed, 3 May 2023 20:42:48 +0000
(13:42 -0700)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:06 +0000
(21:32 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/winsys/nouveau_device.c
patch
|
blob
|
history
diff --git
a/src/nouveau/winsys/nouveau_device.c
b/src/nouveau/winsys/nouveau_device.c
index
1c246ba
..
6a06449
100644
(file)
--- a/
src/nouveau/winsys/nouveau_device.c
+++ b/
src/nouveau/winsys/nouveau_device.c
@@
-191,7
+191,7
@@
nouveau_ws_device_new(drmDevicePtr drm_device)
int fd = open(path, O_RDWR | O_CLOEXEC);
if (fd < 0)
- goto out_
err
;
+ goto out_
open
;
ver = drmGetVersion(fd);
if (!ver)
@@
-275,6
+275,7
@@
nouveau_ws_device_new(drmDevicePtr drm_device)
out_err:
if (ver)
drmFreeVersion(ver);
+out_open:
FREE(device);
close(fd);
return NULL;