Skip to contentSkip to conversation

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

PATCH New Varun Prakash 1 participant 1 message Nov 9, 2018 SCSI target

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: target: iscsi: cxgbit: add missing spin_lock_init()

Add missing spin_lock_init() for cdev->np_lock.

---
 drivers/target/iscsi/cxgbit/cxgbit_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/target/iscsi/cxgbit/cxgbit_main.c +1 -0
index f3f8856..c011c82 100644
@@ -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;
 
Signature · 1 line
2.0.2