mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-26 07:40:12 +01:00
ttm: returning into dummy causes a buffer object leak
as nobody ever derefs dummy, however not returning does the deref correctly.
This commit is contained in:
parent
c4b3a0f602
commit
b0473699ed
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue