diff options
author | Dave Airlie <airlied@redhat.com> | 2007-10-02 15:48:28 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2007-10-02 15:48:28 +1000 |
commit | b0473699ed7bef4efd0742e0a350d345a7cc9a0c (patch) | |
tree | 2051cb5bc6274f0986fe5052b9b1eadc1a04f45f | |
parent | c4b3a0f602abd02038f7e5dd45fcfb2df4b5fcfa (diff) |
ttm: returning into dummy causes a buffer object leak
as nobody ever derefs dummy, however not returning does the deref
correctly.
-rw-r--r-- | linux-core/drm_bo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c index bcbcc662..4e735770 100644 --- a/linux-core/drm_bo.c +++ b/linux-core/drm_bo.c @@ -1767,7 +1767,6 @@ int drm_bo_op_ioctl(struct drm_device *dev, void *data, struct drm_file *file_pr struct drm_bo_op_arg *arg = data; struct drm_bo_op_req *req = &arg->d.req; struct drm_bo_info_rep rep; - struct drm_buffer_object *dummy; unsigned long next = 0; void __user *curuserarg = NULL; int ret; @@ -1804,7 +1803,7 @@ int drm_bo_op_ioctl(struct drm_device *dev, void *data, struct drm_file *file_pr req->bo_req.flags, req->bo_req.mask, req->bo_req.hint, - &rep, &dummy); + &rep, NULL); break; case drm_bo_fence: ret = -EINVAL; |