summaryrefslogtreecommitdiffstats
path: root/linux-headers/linux/vfio.h
diff options
context:
space:
mode:
authorStefan Hajnoczi2013-06-03 10:58:31 +0200
committerMichael Tokarev2013-06-12 11:17:53 +0200
commitbaefb8bf8e4a708c601bbab898a6039cd9cd12e3 (patch)
treecbc9aa4ae7dd0acc1a9dcd88a382fcf8fa642fbe /linux-headers/linux/vfio.h
parenthw/xen: Use g_free instead of free and fix potential memory leaks (diff)
downloadqemu-baefb8bf8e4a708c601bbab898a6039cd9cd12e3.tar.gz
qemu-baefb8bf8e4a708c601bbab898a6039cd9cd12e3.tar.xz
qemu-baefb8bf8e4a708c601bbab898a6039cd9cd12e3.zip
ivshmem: add missing error exit(2)
If the user fails to specify 'chardev' or 'shm' then we cannot continue. Exit right away so that we don't invoke shm_open(3) with a NULL pointer. It would be nice to replace exit(1) with error returns in the PCI device .init() function, but leave that for another patch since exit(1) is currently used elsewhere. Spotted by Coverity. Cc: Cam Macdonell <cam@cs.ualberta.ca> Cc: qemu-stable@nongnu.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-headers/linux/vfio.h')
0 files changed, 0 insertions, 0 deletions