Commit 8808b074 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley

[SCSI] Add missing list head init of cmd_list

parent 0b788f20
...@@ -449,6 +449,7 @@ static struct scsi_device *scsi_alloc_sdev(struct Scsi_Host *shost, ...@@ -449,6 +449,7 @@ static struct scsi_device *scsi_alloc_sdev(struct Scsi_Host *shost,
sdev->online = TRUE; sdev->online = TRUE;
INIT_LIST_HEAD(&sdev->siblings); INIT_LIST_HEAD(&sdev->siblings);
INIT_LIST_HEAD(&sdev->same_target_siblings); INIT_LIST_HEAD(&sdev->same_target_siblings);
INIT_LIST_HEAD(&sdev->cmd_list);
spin_lock_init(&sdev->list_lock); spin_lock_init(&sdev->list_lock);
/* /*
* Some low level driver could use device->type * Some low level driver could use device->type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment