diff mbox series

scsi: target: iscsi: cxgbit: add missing spin_lock_init()

Message ID 1541777386-7455-1-git-send-email-varun@chelsio.com (mailing list archive)
State Accepted
Commit 9e6371d3c6913ff1707fb2c0274c9925f7aaef80
Headers show
Series scsi: target: iscsi: cxgbit: add missing spin_lock_init() | expand

Commit Message

Varun Prakash Nov. 9, 2018, 3:29 p.m. UTC
Add missing spin_lock_init() for cdev->np_lock.

Signed-off-by: Varun Prakash <varun@chelsio.com>
---
 drivers/target/iscsi/cxgbit/cxgbit_main.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/target/iscsi/cxgbit/cxgbit_main.c b/drivers/target/iscsi/cxgbit/cxgbit_main.c
index f3f8856..c011c82 100644
--- a/drivers/target/iscsi/cxgbit/cxgbit_main.c
+++ b/drivers/target/iscsi/cxgbit/cxgbit_main.c
@@ -58,6 +58,7 @@  static void *cxgbit_uld_add(const struct cxgb4_lld_info *lldi)
 		return ERR_PTR(-ENOMEM);
 
 	kref_init(&cdev->kref);
+	spin_lock_init(&cdev->np_lock);
 
 	cdev->lldi = *lldi;