Commit c000c43c authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley

[SCSI] initialize shost_data to zero

It's better to initialize host->shost_data to zero like
target->starget_data and device->sdev_data.
Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 159e36fe
...@@ -220,7 +220,7 @@ int scsi_add_host(struct Scsi_Host *shost, struct device *dev) ...@@ -220,7 +220,7 @@ int scsi_add_host(struct Scsi_Host *shost, struct device *dev)
get_device(&shost->shost_gendev); get_device(&shost->shost_gendev);
if (shost->transportt->host_size && if (shost->transportt->host_size &&
(shost->shost_data = kmalloc(shost->transportt->host_size, (shost->shost_data = kzalloc(shost->transportt->host_size,
GFP_KERNEL)) == NULL) GFP_KERNEL)) == NULL)
goto out_del_classdev; goto out_del_classdev;
......
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