diff options
author | Varun Prakash <varun@chelsio.com> | 2018-11-09 10:29:46 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-12-12 19:49:35 -0500 |
commit | 9e6371d3c6913ff1707fb2c0274c9925f7aaef80 (patch) | |
tree | 7d85dee1b3136272701aebcd7a47ed9ed6794415 | |
parent | ed076c55b359cc9982ca8b065bcc01675f7365f6 (diff) |
scsi: target: iscsi: cxgbit: add missing spin_lock_init()
Add missing spin_lock_init() for cdev->np_lock.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/target/iscsi/cxgbit/cxgbit_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/iscsi/cxgbit/cxgbit_main.c b/drivers/target/iscsi/cxgbit/cxgbit_main.c index f3f8856bfb68..c011c826fc26 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) | |||
58 | return ERR_PTR(-ENOMEM); | 58 | return ERR_PTR(-ENOMEM); |
59 | 59 | ||
60 | kref_init(&cdev->kref); | 60 | kref_init(&cdev->kref); |
61 | spin_lock_init(&cdev->np_lock); | ||
61 | 62 | ||
62 | cdev->lldi = *lldi; | 63 | cdev->lldi = *lldi; |
63 | 64 | ||