diff options
author | 2010-05-27 19:03:56 +0900 | |
---|---|---|
committer | 2010-05-27 13:55:17 +0300 | |
commit | a02c37891a9b2d7ce93f9d09455b4f67c4c23b95 (patch) | |
tree | 0d2b9b630a2ff0dab8fda16008762bcaa223ca93 /lib/bug.c | |
parent | vhost-net: fix to check the return value of copy_to/from_user() correctly (diff) | |
download | wireguard-linux-a02c37891a9b2d7ce93f9d09455b4f67c4c23b95.tar.xz wireguard-linux-a02c37891a9b2d7ce93f9d09455b4f67c4c23b95.zip |
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>
Diffstat (limited to 'lib/bug.c')
0 files changed, 0 insertions, 0 deletions