summary refs log tree commit diff stats
path: root/scripts/qapi/common.py
diff options
context:
space:
mode:
authorAnton Nefedov <anton.nefedov@virtuozzo.com>2018-03-27 00:38:00 -0400
committerJohn Snow <jsnow@redhat.com>2018-03-27 00:38:00 -0400
commitcaeadbc8ba4227f56957203fff0e4058eeb5f1b0 (patch)
tree73a65a0dffe4a703d3f88f471e935264eb9db888 /scripts/qapi/common.py
parent7b93d78a04aa242d377ae213b79db6c319c71847 (diff)
downloadfocaccia-qemu-caeadbc8ba4227f56957203fff0e4058eeb5f1b0.tar.gz
focaccia-qemu-caeadbc8ba4227f56957203fff0e4058eeb5f1b0.zip
ide: fix invalid TRIM range abortion for macio
commit 947858b0 "ide: abort TRIM operation for invalid range"
is incorrect for macio; just ide_dma_error() without doing a callback
is not enough for that errorpath.

Instead, pass -EINVAL to the callback and handle it there
(see related motivation for read/write in 58ac32113).

It will however catch possible EINVAL from the block layer too.

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-id: 1520010495-58172-1-git-send-email-anton.nefedov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions