]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: fix the memory leak which will happen when memory_access_ok fails
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Thu, 27 May 2010 10:03:56 +0000 (19:03 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 May 2010 10:55:17 +0000 (13:55 +0300)
commite06b360ed2966a3df6b6fe88541d81b91553edaf
tree0d2b9b630a2ff0dab8fda16008762bcaa223ca93
parenta2192eaf2863574581f7ce33b57570ca90ec7c67
vhost: fix the memory leak which will happen when memory_access_ok fails

We need to free newmem when vhost_set_memory() fails to complete.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c