diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-08-02 16:16:31 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-08-09 12:42:34 +0200 |
commit | 58625edf9e2515ed41dac2a24fa8004030a87b87 (patch) | |
tree | 86ca528ccabfdd57a45d70471100ce6d76edf185 /fs/buffer.c | |
parent | Linux 4.8-rc1 (diff) | |
download | linux-58625edf9e2515ed41dac2a24fa8004030a87b87.tar.xz linux-58625edf9e2515ed41dac2a24fa8004030a87b87.zip |
virtio: fix memory leak in virtqueue_add()
When using the indirect buffers feature, 'desc' is allocated in
virtqueue_add() but isn't freed before leaving on a ring full error,
causing a memory leak.
For example, it seems rather clear that this can trigger
with virtio net if mergeable buffers are not used.
Cc: stable@vger.kernel.org
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions