[SCSI] zfcp: cfdc fops add owner
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 26 Apr 2013 14:13:47 +0000 (16:13 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 31 May 2013 23:32:36 +0000 (16:32 -0700)
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>
drivers/s390/scsi/zfcp_cfdc.c

index 49b82e46629ee493a860f541e3f521f77a3239ab..b46f54eeb9d0868b2565f6d6fb6aacea6d72abf6 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/compat.h>
 #include <linux/slab.h>
 #include <linux/types.h>
+#include <linux/module.h>
 #include <linux/miscdevice.h>
 #include <asm/compat.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 = {
+       .owner = THIS_MODULE,
        .open = nonseekable_open,
        .unlocked_ioctl = zfcp_cfdc_dev_ioctl,
 #ifdef CONFIG_COMPAT