summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi/libcxgbi.h
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2016-12-07 21:06:45 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2016-12-14 15:11:17 -0500
commit1fe1fdb04b92f54b58eb8b71d2f28cf73fd9801c (patch)
tree3c21c2a8c90ac3f30e4a3b682ae0a533c861e1f1 /drivers/scsi/cxgbi/libcxgbi.h
parent44830d8fd28a729729d14bb160341a6170631eb7 (diff)
downloadlinux-1fe1fdb04b92f54b58eb8b71d2f28cf73fd9801c.tar.gz
linux-1fe1fdb04b92f54b58eb8b71d2f28cf73fd9801c.tar.bz2
linux-1fe1fdb04b92f54b58eb8b71d2f28cf73fd9801c.zip
scsi: cxgb4i: libcxgbi: add missing module_put()
Add module_put() in cxgbi_sock_act_open_req_arp_failure() to release module reference in case of arp failure, also check return value of try_module_get() before posting active open hw cmd. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxgbi/libcxgbi.h')
-rw-r--r--drivers/scsi/cxgbi/libcxgbi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h
index 85bae613d860..95ba99044c3e 100644
--- a/drivers/scsi/cxgbi/libcxgbi.h
+++ b/drivers/scsi/cxgbi/libcxgbi.h
@@ -468,6 +468,7 @@ struct cxgbi_device {
struct pci_dev *pdev;
struct dentry *debugfs_root;
struct iscsi_transport *itp;
+ struct module *owner;
unsigned int pfvf;
unsigned int rx_credit_thres;