From: Thomas Zimmermann Date: Mon, 24 Apr 2023 08:58:25 +0000 (+0200) Subject: fbdev: vfb: Init owner field of struct fb_ops X-Git-Tag: v6.4-rc1~121^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b04ab8c13a73c10a97126fbe7076b2fbf632ba03;p=thirdparty%2Fkernel%2Flinux.git fbdev: vfb: Init owner field of struct fb_ops Initialize the owner field of struct fb_ops. Required to prevent module unloading while the driver is in use. Signed-off-by: Thomas Zimmermann Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/vfb.c b/drivers/video/fbdev/vfb.c index 1a2514d564fcf..a94573997d159 100644 --- a/drivers/video/fbdev/vfb.c +++ b/drivers/video/fbdev/vfb.c @@ -79,6 +79,7 @@ static int vfb_mmap(struct fb_info *info, struct vm_area_struct *vma); static const struct fb_ops vfb_ops = { + .owner = THIS_MODULE, .fb_read = fb_sys_read, .fb_write = fb_sys_write, .fb_check_var = vfb_check_var,