vfio-mdev: fix some error codes in the sample code
authorDan Carpenter <[email protected]>
Thu, 24 Nov 2016 11:27:26 +0000 (14:27 +0300)
committerAlex Williamson <[email protected]>
Wed, 4 Jan 2017 15:32:23 +0000 (08:32 -0700)
commitd293dbaa540b5800817cc10832d764b17cc211b5
tree7a8e8bbc1c2d08ecdb8b0250ababae57949c5302
parent45e869714489431625c569d21fc952428d761476
vfio-mdev: fix some error codes in the sample code

This is just sample code.  We forget to set the error codes in a couple
places.

Signed-off-by: Dan Carpenter <[email protected]>
Reported-by: Alexey Khoroshilov <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
samples/vfio-mdev/mtty.c