On Thu, Mar 13, 2014 at 12:05 PM, Ilia Mirkin wrote:
> Signed-off-by: Ilia Mirkin
Already said on IRC, but for posterity:
Reviewed-by: Ben Skeggs
> ---
> nouveau/nouveau.c | 29 -
> nouveau/private.h | 3 ++-
> 2 files changed, 30 insertions(+), 2 deletions(-)
>
>
Here's a test program I just whipped up that demonstrates (some of)
the issues in the old code. This segfaults in either nouveau_bo_wrap
or nouveau_bo_new, or sometimes nouveau_bo_wrap fails to find the
handle. With the patch, it hasn't failed yet. Ben -- review please?
(Or someone else...) Admitte
Signed-off-by: Ilia Mirkin
---
nouveau/nouveau.c | 29 -
nouveau/private.h | 3 ++-
2 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c
index ee7893b..72c31cf 100644
--- a/nouveau/nouveau.c
+++ b/nouveau/nouveau.c
@@ -