diff options
author | Greg Kurz <groug@kaod.org> | 2016-11-01 12:00:40 +0100 |
---|---|---|
committer | Greg Kurz <groug@kaod.org> | 2016-11-01 12:03:02 +0100 |
commit | 49dd946bb5419681c8668b09a6d10f42bc707b78 (patch) | |
tree | 43a0720c4a525bbc2545c9c9dc64d0915e9b5006 /hw/dma/rc4030.c | |
parent | dd654e0365c7b70df01920f1fca88dd7089eeb5d (diff) |
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 'hw/dma/rc4030.c')
0 files changed, 0 insertions, 0 deletions