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:
Eric van Gyzen 2018-05-28 02:34:38 +00:00
parent 0155aa938e
commit f5136f7ecc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334269

View File

@ -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;
}