Drivers: hv: vmbus: Don't leak channel ids
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 13 Mar 2017 22:57:09 +0000 (15:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2017 07:42:33 +0000 (16:42 +0900)
commit9a5476020a5f06a0fc6f17097efc80275d2f03cd
treee881d2468b3c196f812ea540c0e5ffcebfc1e8f0
parent5a16dfc855127906fcd2935fb039bc8989313915
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>
drivers/hv/channel_mgmt.c