From 8377dbc3cd376070145061212283c9e4a5afeb09 Mon Sep 17 00:00:00 2001 From: Sebastian Ott Date: Fri, 26 Apr 2013 16:13:47 +0200 Subject: [PATCH] [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 Signed-off-by: Steffen Maier Signed-off-by: James Bottomley --- drivers/s390/scsi/zfcp_cfdc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/s390/scsi/zfcp_cfdc.c b/drivers/s390/scsi/zfcp_cfdc.c index 49b82e4..b46f54e 100644 --- a/drivers/s390/scsi/zfcp_cfdc.c +++ b/drivers/s390/scsi/zfcp_cfdc.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -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 -- 2.7.4