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 that not many people keep track of bugzilla, so please forward your patch to the dri-devel mailing list [1]. Thanks Emil [1] dri-devel@lists.freedesktop.org