diff options
author | Varun Prakash <varun@chelsio.com> | 2016-12-07 21:06:45 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-12-14 15:11:17 -0500 |
commit | 1fe1fdb04b92f54b58eb8b71d2f28cf73fd9801c (patch) | |
tree | 3c21c2a8c90ac3f30e4a3b682ae0a533c861e1f1 /drivers/scsi/cxgbi/libcxgbi.h | |
parent | 44830d8fd28a729729d14bb160341a6170631eb7 (diff) | |
download | linux-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.h | 1 |
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; |