Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Drivers: hv: vmbus: Don't leak channel ids

If we cannot allocate memory for the channel, free the relid
associated with the channel.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

K. Y. Srinivasan and committed by
Greg Kroah-Hartman
9a547602 5a16dfc8

+1
+1
drivers/hv/channel_mgmt.c
··· 796 796 /* Allocate the channel object and save this offer. */ 797 797 newchannel = alloc_channel(); 798 798 if (!newchannel) { 799 + vmbus_release_relid(offer->child_relid); 799 800 pr_err("Unable to allocate channel object\n"); 800 801 return; 801 802 }