Просмотр исходного кода

[SCSI] zfcp: cfdc fops add owner

Set the owner member of zfcp_cfdc_fops, to ensure that the
caller of these functions holds a module reference.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Sebastian Ott 12 лет назад
Родитель
Сommit
8377dbc3cd
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      drivers/s390/scsi/zfcp_cfdc.c

+ 2 - 0
drivers/s390/scsi/zfcp_cfdc.c

@@ -14,6 +14,7 @@
 #include <linux/compat.h>
 #include <linux/compat.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/types.h>
+#include <linux/module.h>
 #include <linux/miscdevice.h>
 #include <linux/miscdevice.h>
 #include <asm/compat.h>
 #include <asm/compat.h>
 #include <asm/ccwdev.h>
 #include <asm/ccwdev.h>
@@ -250,6 +251,7 @@ static long zfcp_cfdc_dev_ioctl(struct file *file, unsigned int command,
 }
 }
 
 
 static const struct file_operations zfcp_cfdc_fops = {
 static const struct file_operations zfcp_cfdc_fops = {
+	.owner = THIS_MODULE,
 	.open = nonseekable_open,
 	.open = nonseekable_open,
 	.unlocked_ioctl = zfcp_cfdc_dev_ioctl,
 	.unlocked_ioctl = zfcp_cfdc_dev_ioctl,
 #ifdef CONFIG_COMPAT
 #ifdef CONFIG_COMPAT