On Wed, Apr 19, 2017 at 05:43:52PM +0800, Fam Zheng wrote:
> blk_set_aio_context is audited by perm API, so follow the protocol and
> request for permission first.
> 
> Previously the return code in error path was hardcoded as -EPERM, but
> returning 'r' is more meaningful here both for the new error and
> existing ones.
> 
> Signed-off-by: Fam Zheng <[email protected]>
> ---
>  hw/block/dataplane/virtio-blk.c | 15 +++++++++++----
>  1 file changed, 11 insertions(+), 4 deletions(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to