diff options
author | Greg Kurz | 2018-01-08 11:18:22 +0100 |
---|---|---|
committer | Greg Kurz | 2018-01-08 11:18:22 +0100 |
commit | d1471233bb07611458b701e670e5e2ba0ac12e7c (patch) | |
tree | 655fea1077f8fa5dd563ac4601a2a98c47622d12 /scripts/clean-header-guards.pl | |
parent | 9pfs: fix type in *_parse_opts declarations (diff) | |
download | qemu-d1471233bb07611458b701e670e5e2ba0ac12e7c.tar.gz qemu-d1471233bb07611458b701e670e5e2ba0ac12e7c.tar.xz qemu-d1471233bb07611458b701e670e5e2ba0ac12e7c.zip |
9pfs: fix error path in pdu_submit()
If we receive an unsupported request id, we first decide to
return -ENOTSUPP to the client, but since the request id
causes is_read_only_op() to return false, we change the
error to be -EROFS if the fsdev is read-only. This doesn't
make sense since we don't know what the client asked for.
This patch ensures that -EROFS can only be returned if the
request id is supported.
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/clean-header-guards.pl')
0 files changed, 0 insertions, 0 deletions