Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2016 06:01:45 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309131 - head/sys/dev/hyperv/vmbus
Message-ID:  <201611250601.uAP61j1i051921@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Fri Nov 25 06:01:45 2016
New Revision: 309131
URL: https://svnweb.freebsd.org/changeset/base/309131

Log:
  hyperv/vmbus: Fix sysctl tree leakage, if channel open fails.
  
  MFC after:	1 week
  Sponsored by:	Microsoft
  Differential Revision:	https://reviews.freebsd.org/D8565

Modified:
  head/sys/dev/hyperv/vmbus/vmbus_chan.c

Modified: head/sys/dev/hyperv/vmbus/vmbus_chan.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/vmbus_chan.c	Fri Nov 25 05:54:17 2016	(r309130)
+++ head/sys/dev/hyperv/vmbus/vmbus_chan.c	Fri Nov 25 06:01:45 2016	(r309131)
@@ -451,6 +451,7 @@ vmbus_chan_open_br(struct vmbus_channel 
 	error = ENXIO;
 
 failed:
+	sysctl_ctx_free(&chan->ch_sysctl_ctx);
 	vmbus_chan_clear_chmap(chan);
 	if (chan->ch_bufring_gpadl != 0) {
 		vmbus_chan_gpadl_disconnect(chan, chan->ch_bufring_gpadl);



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