Skip to content

Commit b04ab8c

Browse files
Thomas Zimmermannhdeller
authored andcommitted
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 25ec15a commit b04ab8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/video/fbdev/vfb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ static int vfb_mmap(struct fb_info *info,
7979
struct vm_area_struct *vma);
8080

8181
static const struct fb_ops vfb_ops = {
82+
.owner = THIS_MODULE,
8283
.fb_read = fb_sys_read,
8384
.fb_write = fb_sys_write,
8485
.fb_check_var = vfb_check_var,

0 commit comments

Comments
 (0)