mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 23:50:19 +01:00
[FreeBSD] Fix another lock leak
Reported by vehemens
This commit is contained in:
parent
00b4063906
commit
29ffa0017d
1 changed files with 2 additions and 2 deletions
|
|
@ -832,12 +832,12 @@ int drm_addbufs_sg(struct drm_device *dev, drm_buf_desc_t *request)
|
|||
if (request->count < 0 || request->count > 4096)
|
||||
return EINVAL;
|
||||
|
||||
DRM_SPINLOCK(&dev->dma_lock);
|
||||
|
||||
order = drm_order(request->size);
|
||||
if (order < DRM_MIN_ORDER || order > DRM_MAX_ORDER)
|
||||
return EINVAL;
|
||||
|
||||
DRM_SPINLOCK(&dev->dma_lock);
|
||||
|
||||
/* No more allocations after first buffer-using ioctl. */
|
||||
if (dev->buf_use != 0) {
|
||||
DRM_SPINUNLOCK(&dev->dma_lock);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue