diff options
author | Mike Christie <mchristi@redhat.com> | 2018-07-23 21:07:44 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-31 05:17:53 +0200 |
commit | ff07e4a414d963d5b1ee1446f05a451e591256de (patch) | |
tree | ec644ffd4942868e23c492795fba8a097d5c01ff /drivers/target | |
parent | scsi: target_core_user: fix double unlock (diff) | |
download | linux-ff07e4a414d963d5b1ee1446f05a451e591256de.tar.xz linux-ff07e4a414d963d5b1ee1446f05a451e591256de.zip |
scsi: tcmu: initialize list head
Use INIT_LIST_HEAD to initialize node list head.
Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index fafe65fd37f4..b010ed7e877b 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1342,6 +1342,7 @@ static struct se_device *tcmu_alloc_device(struct se_hba *hba, const char *name) udev->max_blocks = DATA_BLOCK_BITS_DEF; mutex_init(&udev->cmdr_lock); + INIT_LIST_HEAD(&udev->node); INIT_LIST_HEAD(&udev->timedout_entry); INIT_LIST_HEAD(&udev->cmdr_queue); idr_init(&udev->commands); |