[PATCH 3/3] vhost: fix the memory leak which will happen when memory_access_ok fails

2010-05-27 Thread Takuya Yoshikawa
We need to free newmem when vhost_set_memory() fails to complete. Signed-off-by: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp --- drivers/vhost/vhost.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index

Re: [PATCH 3/3] vhost: fix the memory leak which will happen when memory_access_ok fails

2010-05-27 Thread Michael S. Tsirkin
On Thu, May 27, 2010 at 07:03:56PM +0900, Takuya Yoshikawa wrote: We need to free newmem when vhost_set_memory() fails to complete. Signed-off-by: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp --- Thanks, applied. drivers/vhost/vhost.c |4 +++- 1 files changed, 3 insertions(+), 1