android_kernel_xiaomi_sm7250/samples/vfio-mdev
Wei Yongjun f12bd9caaf samples: vfio-mdev: fix error handing in mdpy_fb_probe()
[ Upstream commit 752774ce7793a1f8baa55aae31f3b4caac49cbe4 ]

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: cacade1946 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-10 13:24:04 +02:00
..
Makefile sample: vfio bochs vbe display (host device for bochs-drm) 2018-06-08 10:24:16 -06:00
mbochs.c sample: vfio-mdev: avoid deadlock in mdev_access() 2018-07-11 13:22:41 -06:00
mdpy-defs.h sample: vfio mdev display - host device 2018-06-08 10:24:09 -06:00
mdpy-fb.c samples: vfio-mdev: fix error handing in mdpy_fb_probe() 2021-06-10 13:24:04 +02:00
mdpy.c vmalloc: fix remap_vmalloc_range() bounds checks 2020-04-29 16:31:27 +02:00
mtty.c vfio-mdev/samples: Use u8 instead of char for handle functions 2019-12-05 09:20:28 +01:00