aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2013-04-26 10:13:47 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-05-31 19:32:36 -0400
commit8377dbc3cd376070145061212283c9e4a5afeb09 (patch)
tree0bf5c312f3cf8948947f2c111bf27b389a49cb48 /drivers/s390/scsi
parente4aa937ec75df0eea0bee03bffa3303ad36c986b (diff)
[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>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r--drivers/s390/scsi/zfcp_cfdc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_cfdc.c b/drivers/s390/scsi/zfcp_cfdc.c
index 49b82e46629e..b46f54eeb9d0 100644
--- a/drivers/s390/scsi/zfcp_cfdc.c
+++ b/drivers/s390/scsi/zfcp_cfdc.c
@@ -14,6 +14,7 @@
14#include <linux/compat.h> 14#include <linux/compat.h>
15#include <linux/slab.h> 15#include <linux/slab.h>
16#include <linux/types.h> 16#include <linux/types.h>
17#include <linux/module.h>
17#include <linux/miscdevice.h> 18#include <linux/miscdevice.h>
18#include <asm/compat.h> 19#include <asm/compat.h>
19#include <asm/ccwdev.h> 20#include <asm/ccwdev.h>
@@ -250,6 +251,7 @@ static long zfcp_cfdc_dev_ioctl(struct file *file, unsigned int command,
250} 251}
251 252
252static const struct file_operations zfcp_cfdc_fops = { 253static const struct file_operations zfcp_cfdc_fops = {
254 .owner = THIS_MODULE,
253 .open = nonseekable_open, 255 .open = nonseekable_open,
254 .unlocked_ioctl = zfcp_cfdc_dev_ioctl, 256 .unlocked_ioctl = zfcp_cfdc_dev_ioctl,
255#ifdef CONFIG_COMPAT 257#ifdef CONFIG_COMPAT