summary refs log tree commit diff stats
path: root/stubs/error-printf.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2016-11-01 12:00:40 +0100
committerGreg Kurz <groug@kaod.org>2016-11-01 12:03:02 +0100
commit49dd946bb5419681c8668b09a6d10f42bc707b78 (patch)
tree43a0720c4a525bbc2545c9c9dc64d0915e9b5006 /stubs/error-printf.c
parentdd654e0365c7b70df01920f1fca88dd7089eeb5d (diff)
downloadfocaccia-qemu-49dd946bb5419681c8668b09a6d10f42bc707b78.tar.gz
focaccia-qemu-49dd946bb5419681c8668b09a6d10f42bc707b78.zip
9pfs: don't BUG_ON() if fid is already opened
A buggy or malicious guest could pass the id of an already opened fid and
cause QEMU to abort. Let's return EINVAL to the guest instead.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'stubs/error-printf.c')
0 files changed, 0 insertions, 0 deletions