drm: fix memory leak on error path
Reported by: Coverity CID: 1368753 MFC after: 3 days Sponsored by: Dell EMC
This commit is contained in:
parent
0155aa938e
commit
f5136f7ecc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334269
@ -105,6 +105,7 @@ int drm_setunique(struct drm_device *dev, void *data,
|
||||
DRM_LOCK();
|
||||
if (dev->unique_len || dev->unique) {
|
||||
DRM_UNLOCK();
|
||||
free(busid, DRM_MEM_DRIVER);
|
||||
return EBUSY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user