diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-05-20 13:36:41 +0000 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-05-24 13:40:13 -0600 |
commit | 752774ce7793a1f8baa55aae31f3b4caac49cbe4 (patch) | |
tree | b3dbf58361d356478f34d23c820c07fd3ebc7cfb /drivers/vfio | |
parent | 78b238147e4d241bc1681d2559477c995f9dcb0a (diff) |
samples: vfio-mdev: fix error handing in mdpy_fb_probe()
Fix to return a negative error code from the framebuffer_alloc() error
handling case instead of 0, also release regions in some error handing
cases.
Fixes: cacade1946a4 ("sample: vfio mdev display - guest driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Message-Id: <20210520133641.1421378-1-weiyongjun1@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions