Skip to content

Commit

Permalink
scsi: target: iscsi: cxgbit: add missing spin_lock_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Varun Prakash authored and Martin K. Petersen committed Dec 13, 2018
1 parent ed076c5 commit 9e6371d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/target/iscsi/cxgbit/cxgbit_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9e6371d

Please sign in to comment.