aboutsummaryrefslogtreecommitdiff
path: root/tests/device-introspect-test.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-01-02 11:03:33 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2017-01-16 17:52:34 +0100
commit765a707000e838c30b18d712fe6cb3dd8e0435f3 (patch)
treee8778e48e3e72b3a337ef6118c161dc0f25e7ed8 /tests/device-introspect-test.c
parentbf7bb91e3c998f80d72b69707f3f6050587eddc0 (diff)
megasas: fix guest-triggered memory leak
If the guest sets the sglist size to a value >=2GB, megasas_handle_dcmd will return MFI_STAT_MEMORY_NOT_AVAILABLE without freeing the memory. Avoid this by returning only the status from map_dcmd, and loading cmd->iov_size in the caller. Reported-by: Li Qiang <liqiang6-s@360.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/device-introspect-test.c')
0 files changed, 0 insertions, 0 deletions