Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 02:34:38 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334269 - head/sys/dev/drm
Message-ID:  <201805280234.w4S2YcF2075481@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805280234.w4S2YcF2075481>