Skip to content

Commit

Permalink
[SCSI] zfcp: cfdc fops add owner
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Ott authored and James Bottomley committed May 31, 2013
1 parent e4aa937 commit 8377dbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/s390/scsi/zfcp_cfdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8377dbc

Please sign in to comment.