Author: vangyzen Date: Mon May 28 02:34:38 2018 New Revision: 334269 URL: https://svnweb.freebsd.org/changeset/base/334269
Log: drm: fix memory leak on error path Reported by: Coverity CID: 1368753 MFC after: 3 days Sponsored by: Dell EMC Modified: head/sys/dev/drm/drm_ioctl.c Modified: head/sys/dev/drm/drm_ioctl.c ============================================================================== --- head/sys/dev/drm/drm_ioctl.c Mon May 28 02:31:49 2018 (r334268) +++ head/sys/dev/drm/drm_ioctl.c Mon May 28 02:34:38 2018 (r334269) @@ -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; } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"