[Bug 90194] Fix Valgrind error in drmPrimeHandleToFD

2015-05-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=90194 Emil Velikov changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 90194] Fix Valgrind error in drmPrimeHandleToFD

2015-04-29 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=90194 Guillaume Desmottes changed: What|Removed |Added Attachment #115403|0 |1 is obsolete|

[Bug 90194] Fix Valgrind error in drmPrimeHandleToFD

2015-04-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=90194 --- Comment #4 from Pekka Paalanen --- If you initialize an fd, at least initialize it to the invalid file descriptor -1. Zero is a valid file descriptor and very often already an open one. -- You are receiving this mail because: You are the as

[Bug 90194] Fix Valgrind error in drmPrimeHandleToFD

2015-04-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=90194 Guillaume Desmottes changed: What|Removed |Added Attachment #115375|0 |1 is obsolete|

[Bug 90194] Fix Valgrind error in drmPrimeHandleToFD

2015-04-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=90194 --- Comment #2 from Emil Velikov --- Hi Guillaume With args.fd used for output this seems like a false positive. Alternative solution would be to make Valgrind aware of this. A similar issue exists for args.handle in drmPrimeFDToHandle. I fear

[Bug 90194] Fix Valgrind error in drmPrimeHandleToFD

2015-04-27 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=90194 --- Comment #1 from Guillaume Desmottes --- Created attachment 115375 --> https://bugs.freedesktop.org/attachment.cgi?id=115375&action=edit drmPrimeHandleToFD: initialize args.fd to 0 -- You are receiving this mail because: You are the assign

[Bug 90194] Fix Valgrind error in drmPrimeHandleToFD

2015-04-27 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=90194 Bug ID: 90194 Summary: Fix Valgrind error in drmPrimeHandleToFD Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal