From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Maier Subject: [PATCH RESEND 1/9] zfcp: cfdc fops add owner Date: Fri, 26 Apr 2013 16:13:47 +0200 Message-ID: <1366985635-38270-2-git-send-email-maier@linux.vnet.ibm.com> References: <1366985635-38270-1-git-send-email-maier@linux.vnet.ibm.com> Return-path: Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:59250 "EHLO e06smtp18.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753485Ab3DZORk (ORCPT ); Fri, 26 Apr 2013 10:17:40 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 Apr 2013 15:13:50 +0100 In-Reply-To: <1366985635-38270-1-git-send-email-maier@linux.vnet.ibm.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: linux-scsi@vger.kernel.org, linux-s390@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , Steffen Maier , Sebastian Ott From: Sebastian Ott 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 --- drivers/s390/scsi/zfcp_cfdc.c | 2 ++ 1 file changed, 2 insertions(+) --- 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 f } static const struct file_operations zfcp_cfdc_fops = { + .owner = THIS_MODULE, .open = nonseekable_open, .unlocked_ioctl = zfcp_cfdc_dev_ioctl, #ifdef CONFIG_COMPAT