Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 150b9e51 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: fix error handling in RESET_OWNER ioctl



RESET_OWNER ioctl would leave the fd in a bad state if
memory allocation failed: device is stopped
but owner is not reset. Make state changes
after allocating memory, such that a failed
ioctl has no effect.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 061b16cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment