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>
This commit is contained in:

committed by
Martin K. Petersen

parent
44830d8fd2
commit
1fe1fdb04b
@@ -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;
|
||||
|
Reference in New Issue
Block a user