Skip to content

Commit

Permalink
fbdev: vfb: Init owner field of struct fb_ops
Browse files Browse the repository at this point in the history
Initialize the owner field of struct fb_ops. Required to prevent
module unloading while the driver is in use.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Thomas Zimmermann authored and Helge Deller committed Apr 24, 2023
1 parent 25ec15a commit b04ab8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/fbdev/vfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b04ab8c

Please sign in to comment.