From: Thomas Zimmermann Date: Mon, 19 Dec 2022 16:05:07 +0000 (+0100) Subject: vfio-mdev/mdpy-fb: Do not set struct fb_info.apertures X-Git-Tag: v6.6.17~3937^2~23^2~972 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e12fa3544469b761ba72b070190d272e2a644e54;p=platform%2Fkernel%2Flinux-rpi.git vfio-mdev/mdpy-fb: Do not set struct fb_info.apertures Generic fbdev drivers use the apertures field in struct fb_info to control ownership of the framebuffer memory and graphics device. Do not set the values in mdpy-fb. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Link: https://patchwork.freedesktop.org/patch/msgid/20221219160516.23436-10-tzimmermann@suse.de --- diff --git a/samples/vfio-mdev/mdpy-fb.c b/samples/vfio-mdev/mdpy-fb.c index 9ec93d9..1de5801 100644 --- a/samples/vfio-mdev/mdpy-fb.c +++ b/samples/vfio-mdev/mdpy-fb.c @@ -161,14 +161,6 @@ static int mdpy_fb_probe(struct pci_dev *pdev, goto err_release_fb; } - info->apertures = alloc_apertures(1); - if (!info->apertures) { - ret = -ENOMEM; - goto err_unmap; - } - info->apertures->ranges[0].base = info->fix.smem_start; - info->apertures->ranges[0].size = info->fix.smem_len; - info->fbops = &mdpy_fb_ops; info->flags = FBINFO_DEFAULT; info->pseudo_palette = par->palette;