Re: [PATCH 2/3] Drivers: hv: Cleanup error handling in vmbus_open()

2012-10-18 Thread Dan Carpenter
On Fri, Oct 12, 2012 at 01:22:42PM -0700, K. Y. Srinivasan wrote: > -errorout: > - hv_ringbuffer_cleanup(&newchannel->outbound); > - hv_ringbuffer_cleanup(&newchannel->inbound); > +error1: > + spin_lock_irqsave(&vmbus_connection.channelmsg_lock, flags); > + list_del(&open_info->msgl

[PATCH 2/3] Drivers: hv: Cleanup error handling in vmbus_open()

2012-10-12 Thread K. Y. Srinivasan
Fix a memory leak in the error handling path in the function vmbus_open(). Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang Reported-by: Jason Wang Cc: Stable --- drivers/hv/channel.c | 24 +--- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/