Skip to contentSkip to conversation

tcmu: initialize list head

PATCH Applied Mike Christie 1 participant 1 message Jul 23, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/9 tcmu: initialize list head

Use INIT_LIST_HEAD to initialize node list head.

---
 drivers/target/target_core_user.c | 1 +
 1 file changed, 1 insertion(+)
drivers/target/target_core_user.c +1 -0
index fafe65f..b010ed7 100644
@@ -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);
Signature · 1 line
1.8.3.1